: Reduce HTTP Requests method for js and css Is these way can Reduce HTTP Requests? multiple javascript files with & symbol <script type="text/javascript" src="http://yui.yahooapis.com/combo?2.5.2/build/yahoo-dom-event/yahoo-dom-
Is these way can Reduce HTTP Requests?
multiple javascript files with & symbol
<script type="text/javascript"
src="http://yui.yahooapis.com/combo?2.5.2/build/yahoo-dom-event/yahoo-dom-event.js
&http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js">
</script>
multiple css files with @ import
<style type="text/css"> @import url(css/style.css); @import url(css/custom.css);
</style>
More posts by @Harper822
1 Comments
Sorted by latest first Latest Oldest Best
The 2 examples are minified versions served from popular CDN, so many visitors will have them in their cache, and therefore no HTTP request will be required.
If you want to combine them, download the files and then you need to do some kind of combining the files on the server side. If you are using .NET SquishIt is a popular choice. If you use PHP minify is an option.
In regard to the CSS files, the above two options support those as well.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.