I have a jQuery script that changes the src attribute of an <img>
and a few other page elements.
My script is hooked to the document-ready callback using $()
. When I refresh the page I see the original content for half a second. I want to avoid that.
Is there a way for my script to execute after the DOM is ready but before it is rendered?