Website Performance Techniques


  1. Caching - Yes, one of the most important technique for any website of web-application. It has many levels and ways - from server side cache to browser level cache, from natively provided by browser to custom build cache.
    • Browser cache - browser caches static resources used by website if proper header tags are given, like expiry-date, e-tags, mime-types.
    • LocalStorage - if we are going to use response multiple times and it won’t be changing so frequently and will remain same across sessions, we better save it in localStorage.
    • SessionStorage - session storage is another form of localStorage cache, but with scope browser-session.
    • Cookies - if data is small and localStorage/sessionStorage is no available, we can polyfill it with cookies.
    • RocketLoader & PageSpeed are tools available which can save you bandwidth using localStorage.
  2. Preloading of images and resources ahead of time is another way of making website faster, if we know user is going to navigate to the next page, why not pre-load it?
  3. Optimizations of external resource loading and rendering - 
  4. Minification and bundling of static resources. -
    • Javascript minification, obfuscation and bundling.
    • CSS minification & bundling
    • CSS-sprite
    • SVG images
    • gzip resources  (Very Important) 
  5. Tools

Comments

Post a Comment

Popular posts from this blog

Localization vs. Internationalization

UI Drama