Hello,

I'm developing a web theme. Before the last div tag(Which simply has an image), I have added a java script which is calling a remote server for an image output. the last div tag image doesn't get loaded until the javascript execution completes. Please let me know a way to change this order ( load the javascript after the last image is loaded) as the whole design looks bad due to this problem. :(

Thanks in advance

Place the block of Javascript code *after* the DIV tag and things should work out fine. It problems still persist, consider attaching a listener to the onload event handler of the window object which would execute the required Javascript only after the entire page has loaded.

Hello,
Thank you very much for your advice. It works. thanks a lot!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.