Reputation: 13999
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?
Upvotes: 1
Views: 417
Reputation: 24577
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.
Upvotes: 1
Reputation: 169338
Perhaps the defer="defer"
or async="true"
attributes?
EDIT: If we're talking about a <script>
tag in the first place.
Upvotes: 1