Web pages load faster when browsers cache, saving a website’s assets to expedite loading the page. What are a website’s assets? Images, external style sheets, external JavaScript, JSON and XML files, etc.
Caches reduce the amount of information that needs to be transmitted across the network by re-using what it has stored.
How can your website load faster?
- Styles and scripts should be external.
- At a server level, configure how long each type of the external assets is cached.
- For heavily trafficked sites, a Content Delivery Network (CDN) may be needed. A CDN stores assets in many locations, sometimes across the world.