should Modernizr file be placed in head?

后端 未结 4 1147
长情又很酷
长情又很酷 2020-12-23 09:16

Should the reference to the Modernizr JavaScript file be in the head of the page? I always try and place all scripts on the bottom of the page and would like to preserve thi

4条回答
  •  一生所求
    2020-12-23 09:39

    Paul Irish is now suggesting that for > 75% of sites, there is no benefit to placing Modernizr in the head.

    Move Modernizr to the bottom

    It has more potential to introduce unexpected situations, however it's much better for the user to just have no scripts up in the head at all.

    I bet >75% of sites dont need it in the head. I'd rather change this default and educate the 25% than watch as we slow down all these sites.

    https://github.com/h5bp/html5-boilerplate/issues/1605

提交回复
热议问题