Noscript Tag, JavaScript Disabled Warning and Google Penalty

前端 未结 6 1172

I have been using a noscript tag to show a warning when users have JavaScript disabled or are using script blocking plugins like Noscript. The website will not function prop

6条回答
  •  情话喂你
    2020-12-02 11:18

    Somebody on another forum mentioned using an image for the warning. The way I see it, this would have three benefits:

    1. There wouldn't be any irrelevant text for search engines to index.
    2. The code to display a single image is less bulky than a text warning (which gets loaded on every page).
    3. Tracking could be implemented to determine how many times the image is called, to give an idea of how many visitors have JavaScript disabled or blocked.

    If you combine this with something like the non-noscript technique mentioned by J-P, it seems to be the best possible solution.

提交回复
热议问题