Load javascript async, then check DOM loaded before executing callback

前端 未结 2 398
离开以前
离开以前 2020-12-03 15:14

Problem:
Load js files asynchronously, then check to see if the dom is loaded before the callback from loading the files is executed.

2条回答
  •  借酒劲吻你
    2020-12-03 16:02

    You can always put your initial loader script at the bottom, right before the closing body tag.

提交回复
热议问题