Execute jQuery code after all CSS rules have been applied

后端 未结 2 375
日久生厌
日久生厌 2021-01-12 15:58

$(document).ready() executes the code when all HTML elements have been loaded.

How to execute jQuery code after all of the CSS rules have been applied?<

相关标签:
2条回答
  • 2021-01-12 16:08

    $(window).load() fires after the whole page (images, CSS, etc.) has loaded.

    0 讨论(0)
  • 2021-01-12 16:18
    $(window).load(function() {
    
     // executes when complete page is fully loaded, including all frames, objects and images
    
     alert("window is loaded");
    
    });
    
    0 讨论(0)
提交回复
热议问题