jquery loaded async and ready function not working

后端 未结 6 1241
说谎
说谎 2021-01-14 02:40

In order to optimize the load of my document, I use to load jquery async like that



        
6条回答
  •  轮回少年
    2021-01-14 03:19

    Question Script Tag - async & defer has good answer to your problem.

    In a nutshell you cannot load jQuery, or other library, asyncronously when some other script depends on it without some additional asyncronous handling for executing the scripts depending on the library.

提交回复
热议问题