load jquery after the page is fully loaded

前端 未结 11 1468
甜味超标
甜味超标 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条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-31 08:38

    You can either use .onload function. It runs a function when the page is fully loaded including graphics.

    window.onload=function(){
          // Run code
        };
    

    Or another way is : Include scripts at the bottom of your page.

提交回复
热议问题