- Many HTTP Requests (meaning generating more load to the web server)
- Less chance for caching any of those files
- If HTTP compression is enabled in the IIS many files mean more load and worse compression ratio than one merged file.
The solution for merging AJAX AXDs in a single file is described in those two great posts:Script combining made easy [Overview of the AJAX Control Toolkit’s ToolkitScriptManager]
andScript combining made better [Overview of improvements to the AJAX Control Toolkit’s ToolkitScriptManager]
The recapitulation when with a friend of mine (Julian) tested out this technique was reducing the loading time with about 2 seconds on a quite clean and well build site. Also the better HTTP compression reduced the size a bit.
If you are using ComponentArt’s Web.UI version 2007.2 or later controls there is solution posted on their blogs too:Optimizing Web.UI Client Script Deployment
And couple more general advices:
- Load CSS at most top of you page
- Be smart :)