144
rated 0 times
[
146]
[
2]
/ answers: 1 / hits: 100617
/ 13 Years ago, wed, march 30, 2011, 12:00:00
Is it possible to load certain scripts like
<script type=text/javascript src=somescript.js></script>
when the rest of the page has loaded?
Imagine I have a few larger script files like this that are not needed when the page is loaded. E.g. I'm using the Google Maps API that is only used when a button is clicked (so not on page load).
Is it possible to load the rest of the page first, before processing all those script tags in my head?
More From » javascript