Reputation: 9246
We have main layout page, and we have some external scripts, that loading after page loaded via ajax. Some of them are really slow, cause they are opening socket.io connection. This slow down whole page load.
I have some questions:
Is it ok, if external widget contains more than 5 scripts in body? What reasonable limits we should have on count of scripts per service?
<script src="/path/to.js"></script>
embedded in ajax loaded html - will make sync or async query to server?
How to avoid browser block, during external script load?
How to improve speed loading time, when we have a lot of external scripts?
Update: Finally I use HeadJS library.
Upvotes: 0
Views: 233
Reputation: 4092
a good read is this: http://www.sitepoint.com/a-detailed-breakdown-of-the-ltscriptgt-tag/
it is very thorough in explaining the history and evolution of the script tag itself, and has some of it's best practices.
Upvotes: 1