javascript - Why does jQuery.ready run when the page isnt ready? -
so put jquery document ready functions @ bottom of html, have run before elements of page loaded. i'm tired of functions not working because resources arent finished loading on page, jquery.ready keeps saying elements done loading when arent! wants set 300ms timeout functions wait little after jquery.ready?
use .ready()
perform actions when dom ready scripting.
$(document).ready(function(){ });
use .load()
perform actions when "page" (resources including files , images) loaded.
$(window).load(function(){ });
Comments
Post a Comment