Mobile app version of vmapp.org
Login or Join
Harper822

: 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-

@Harper822

Posted in: #Connections #Css #Http #Javascript

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>

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Harper822

1 Comments

Sorted by latest first Latest Oldest Best

 

@Alves908

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme