Shouldn't we use

前端 未结 11 954
北荒
北荒 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:26

    Like all things, use the right tool for the job.

    If you are using Google Maps API, you have a static image via tag and that gets replaced with dynamic JS map. Google have recently started charging for everything thus with the above example it's going to cost you twice, once for static and once for dynamic. The static map is only relevant if JS is disabled. Therefore to save double paying it seems to me the best solution is to wrap the tag for the static map in a tag.

提交回复
热议问题