Do something AFTER the page has loaded completely

前端 未结 8 708
日久生厌
日久生厌 2020-12-08 20:41

I\'m using some embed codes that insert HTML to the page dynamically and since I have to modify that dynamically inserted HTML, I want a jquery function to wait until the pa

8条回答
  •  [愿得一人]
    2020-12-08 21:10

    $(window).load(function () { ... }
    

    can be enough but otherwise your embeded code (what ever that can be) might provide some callback functionality that you can make use of.

    delay() should only be used to delay animations.

提交回复
热议问题