Click here to Skip to main content
15,913,237 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I have created an extension for firefox. But while checking I have confirmed that the Mozilla extension code is executing before the page load is complete. My javascript file cannot contain any html tags, so I cannot use method. Currently I am using window.addEventListener("load", function (e) { function.onLoad(e); }, false) method. But this method is executing the javascript before the page load is complete.I want to run my extension after page load is complete.

Can anyone suggest me a javascript function that I can invoke after the entire page has completed loading ?
Posted

1 solution

Can you not use defer[^]?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900