load jquery after the page is fully loaded

前端 未结 11 1463
甜味超标
甜味超标 2020-12-31 08:32

I\'m looking for a way to load jquery after the page is fully loaded.
well there are lots of questions and answers about it in here, but all describe how to run a scri

11条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-31 08:58

    if you can load jQuery from your own server, then you can append this to your jQuery file:

    jQuery(document).trigger('jquery.loaded');

    then you can bind to that triggered event.

提交回复
热议问题