Skip to content

Instantly share code, notes, and snippets.

@micmath
Created June 14, 2012 22:17
Show Gist options
  • Save micmath/2933306 to your computer and use it in GitHub Desktop.
Save micmath/2933306 to your computer and use it in GitHub Desktop.
Case for separate module URLs:
Traffic analysis of your site shows that most visitors
require module A (big, almost never changes) and only
a few visitors require module B (small, changes often).
Keep those modules at separate URLs and everyone will
only download module A rarely. On subsequent pages/visits
that data will come straight from user-agent's cache.
Combine them into a single URL and everyone will have
to download modules A+B every single time module B
changes, even though most visitors never even use B.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment