window.onload?

  • $(document).ready() → Runs when DOM is ready (faster).
  • window.onload → Runs when entire page including images & resources is loaded (slower).

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *