I am adding a style sheet to the head of the HTML page via the Jquery appendTo API.
Once appended it appears the browser goes off and downloads the style sheet and referenced images and then applies the changes to the page.
How can I detect after this page has been updated? I.E. once its done downloading and done applying the CSS Style sheet that was added via appentTo?
Thanks!
Usually browsers trigger image download when they detect that image is used for rendering. So if you have styles with images that are not applied to any elements the images will not be downloaded.
The only event that is possible to generate in this respect is
window.onload()– all (fuzzy term) resources initially declared in visible elements are arrived. See: https://developer.mozilla.org/en/DOM/window.onload .