If I have a page which gets generated using PHP and then modified using JS which runs using:
window.onload=myFunction;
Then the user sees the original page, which then appears to flick around as the js code gets run and adds its own bits onto the page.
Is there a way to avoid the user being able to see this process, or to at least make it less obvious to them? Maybe there is a more suitable method of loading the javascript than window.onload (one that can begin to work as the images etc. are downloading)?