Shouldn't we use

前端 未结 11 943
北荒
北荒 2020-12-07 09:08

I found some good cons here:

  • The noscript element only detects whether the browser has JavaScript enabled or not. If JavaScript is disabled in the Firewall

11条回答
  •  隐瞒了意图╮
    2020-12-07 09:22

    It's better to have the default be non-javascript, and then let a javascript code overwrite with a javascript enabled page. Doesn't have to be much. Can just be a display:none; block, which is then set to display:block; by javascript, and vice versa for the non-js page.

提交回复
热议问题