jQuery how to check a page loaded fully
X

Congrats, You are Subscribed to Receive Updates.

jQuery How to Check a page loaded fully


jQuery  how to check a page loaded fully. We have to show some animations or images before the page completely  rendered. For that, we have to a jQuery function  to check whether the page is loaded or not. There are two options here. when  you want to check whether a page is ready.  you can use ready() function.  And if you want to check whether the page loaded completely, you can use window.location();  function to load. Here is an example for each method.

$(window).load(function() {
    //When your page is loaded  and ready to use.
})

This one describes you to use optimally. It runs after the window is loaded completely.  The  following one is DOM ready event.

$( document ).ready(function() {
  // dom is ready to work. 
});

Here the DOM ready will work after the document is ready to handle functions.  but the window is not loaded completely.

commenter

About Varadharaj V

The founder of Kvcodes, Varadharaj V is an ERP Analyst and a Web developer specializing in WordPress(WP), WP Theme development, WP Plugin development, Frontaccounting(FA), Sales, Purchases, Inventory, Ledgers, Payroll & HRM, CRM, FA Core Customization, OpenCart Theme Development, PHP, HTML, CSS, jQuery, Bootstrap development and content SEO.

Comment Below

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

*

Current ye@r *

Menu

Sidebar

Subscribe E-mail Updates

Congrats, You are Subscribed to Receive Updates.

Advertisement

Category Posts