0

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

2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by sampathw
0

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.

0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.