V
V
Vasily Vasilyev2018-07-26 22:49:41
JavaScript
Vasily Vasilyev, 2018-07-26 22:49:41

How to stop a website from loading when javascript is disabled in the browser?

It is necessary that the site does not load when scripts are disabled in the browser (or with NoScript). Preferably without negative effects for SEO.
PS:

<noscript>
<style>body { display: none; }</style>
</noscript>

This option is not suitable, because. it is not the rendering of the site that needs to be prevented, but the loading of its .

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dorothy, 2018-07-26
@Basil_Dev

Maybe,

<html>
<head>
<noscript>
<meta http-equiv="refresh" content="0;url=http://site/blank.html">
</noscript>
</head>
</html>

X
xmoonlight, 2018-07-26
@xmoonlight

1. Sign links to files via ajax on click (or other event).
No JS - no files)
2. Create a "screen" with an additional layer on top of all content (for the entire width and height of the page) and disable it through JS.

A
Anatoly, 2018-07-26
@trofimovdev

Something like this (JQuery, but can be rewritten in native JS):

$(document).ready(function(){
    $("head").append($("<link rel='stylesheet' href='style.css' type='text/css'>"));
});

The idea is to upload files via JS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question