jquery: does $(window).load() get fired after css is rendered? -
i reading stackoverflow post:
is $(document).ready() css ready?
the answer clear: no, $(document).ready()
not guarantee complete css
rendering.
that left me wondering: can ensure full css
rendering before jquery
function (that relies on rendered css
) executed? there event gets fired once css
rendered? $(window).load()
solution? $(window).load()
seems work fine me , seems developer recommends:
http://taitems.tumblr.com/post/780814952/document-ready-before-css-ready (is our assumption)
correct?
i'd suggest load css in head before call scripts should ideally @ bottom of html document. have been using , never has there been case unstyled content visible.
Comments
Post a Comment