Move jQuery to the end of body tag?

前端 未结 7 724
星月不相逢
星月不相逢 2020-12-05 16:06

My friend read an article which mentioned that moving all JavaScript files to the end of the closing body tag (), will improve the performance of a

7条回答
  •  囚心锁ツ
    2020-12-05 16:24

    Just take in account that the jQuery JavaScript file must be loaded before any call to the $(...) function.

提交回复
热议问题