views:

41

answers:

2

I have a webpage which lags while loading, because an embedded object is trying to be processed... My webpage load sequentially, but the script delays the entire page because it appears at the top...

Is it possible to have the script / object load last, but still have it appear at the top of the page?

+1  A: 

Perhaps the defer="defer" or async="true" attributes?

EDIT: If we're talking about a <script> tag in the first place.

AKX
+1  A: 

As a last recourse, you can remove the element from the page HTML, and write it back using JavaScript once the page has finished loading.

Victor Nicollet