Skip to content

Instantly share code, notes, and snippets.

@mgttt
Last active June 10, 2016 03:14
Show Gist options
  • Save mgttt/b04fbd63fb476fae13604b4962d1698e to your computer and use it in GitHub Desktop.
Save mgttt/b04fbd63fb476fae13604b4962d1698e to your computer and use it in GitHub Desktop.
front end web page loading flow best pratise
# JQ + UI
{ header}
{ body part one }
{ async get page data }
{ boot CSS }
{ boot JS }
{ page content template }
{ page main js }
{ page other js }
loop check ( async data && main js loaded ) => main()
# WAP/MINI
{ head }
{ boot CSS }
{ boot JS }
{ page content }
{ main JS }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment