Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

minified bundle JS and external libraries [closed]

I want to reduce the HTTP request on my website as much as possible.

Is it ok to minify all the JS in one big minified file, including external libraries such as jQuery?

like image 917
fulmicoton Avatar asked Oct 30 '11 23:10

fulmicoton


1 Answers

Yes; this is perfectly fine, and common practice.

However, you may prefer to load jQuery from Google's CDN instead of including it in the bundle.
This saves time for people who already have Google's jQuery in their cache.

like image 192
SLaks Avatar answered Oct 04 '22 01:10

SLaks