Skip to content

Instantly share code, notes, and snippets.

@justmarkup
Last active October 18, 2016 16:57
Show Gist options
  • Save justmarkup/87ca5901dd47cde5e32f676e7cc741e8 to your computer and use it in GitHub Desktop.
Save justmarkup/87ca5901dd47cde5e32f676e7cc741e8 to your computer and use it in GitHub Desktop.
First View - Flow View - Repeat View

Note: This list doesn't include general performance improvements, like mentioned in this article

First View (a user visits a page for the first time or has cleared the cache/data since the last visit)

  • Load the core content as fast as possible and do it server-side
  • Load additional and third-party content asynrchronous
  • Inline critical CSS
  • Load web fonts asynrchronous and avoid FOIT and cache for repeat views, consider using no web fonts for first view
  • Fetch non-critical resources asynchronous and cache for later
  • Register a Service Worker and cache main assets
  • Preload assets necessary for sites a user may visit next
  • Store a cookie for repeat and flow views
  • Save data locally

Repeat View (a user visits a page again after having closed the page or browser)

Flow View (a user has previously visited another page on the same domain)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment