Serve Static Content from Cookie less Domain
For viewing all tips see here
Applicable To
All Browsers
How Improves Page Load Time
By optimizing network latency (HTTP Request Size)
Prologue
[Detail of the technology / concept being used in the tip if required]
Why
As static content like images, CSS, JS don’t need to be accompanied by cookies, as there is no user interaction with these resources.
How
Serve static content from a domain that doesn’t serve cookies
Exceptions
o Using this technique for pages serving fewer than 5 resources, setting up an extra domain for this purpose would be an overhead
o Serving early loaded external JS files from cookie less domain can introduce overhead as most browser stop downloading other external resources until external JS file is downloaded, extracted, parsed and executed.
Recommendations
Use this technique for any page that serves more than 5 static resources
Comments
Post a Comment