Use packaging with caution.
While it reduces the number of http requests, it makes the browser cache (and proxy cache, CDN cache, and any cache you use) less useful .
Let's say you have scriptA.js
and scriptB.js
. Some pages use A
, some pages use B
, some pages use both A
and B
There are three different scenarios with the package. Without tying him two.
Alex source share