How do you execute a Javascript function when the page has fully rendered?

前端 未结 1 1693
长发绾君心
长发绾君心 2021-01-05 14:01

How would you go about executing a Javascript function when the page is fully rendered (Displayed) I know that the onLoad event executes when the page is loaded but Before i

相关标签:
1条回答
  • 2021-01-05 14:55

    The onload event fires when the page is fully rendered (including dependancies such as images).

    Perhaps you are confusing it with Prototype's dom:loaded event (which fires when the DOM is loaded but before all the dependancies have been included)?

    (To be honest, this sounds like an X-Y problem.)

    0 讨论(0)
提交回复
热议问题