Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Critical rendring path

Critical rendring path

Marwen Kheder

April 15, 2015
Tweet

Other Decks in Programming

Transcript

  1. FACTS • Web pages are getting bigger and bigger •

    N° users who surf the web with mobile phones and tablets is increasing.
  2. But how can you accomplish this ambitious goal without cutting

    off features or dramatically disfiguring your site?
  3. the sequence of steps the browser goes through to turn

    “the code and resources required to render the initial view of a web page” into actual pixels on the screen.
  4. GRUNT / GULP • Live Reload • Using Sass ,

    Less , CoffeeScript , Jade-Lang , Haml • Run tests • Generate Distribution version
  5. GOOD LINKS Google developers : Critical Rendering Path http://goo.gl/QaZUcl Udacity

    : Website Performance Optimization http://goo.gl/nxl9PU
  6. CONCLUSION • The notion of page speed has shifted from

    simple page loading to page rendering • The Critical Rendering Path comprises all steps to turn critical resources into a visible browser output: DOM and CSSOM, JavaScript, render tree, layout and paint phase • HTML is render blocking, but the DOM can be built incrementally • CSS is render and script blocking, treat it carefully and optimize it with inline styles or media queries • JS is parser blocking, use it sparingly during the initial page load, defer execution or try to load it asynchronously • Don’t forget that size still matters and minify, compress, cache • Using Build Tools can help improve your workflow and can helps you to generate a distribution version
  7. SOURCES • Google’s Web Fundamentals documentation • Udacity’s Website Performance

    Optimization course • The free online book High Performance Browser Networking by Ilia Grigorik • Mozilla Developer Network • Sitepoint article Optimizing the Critical Rendering Path by Stephan Max • Automating workflow by Addy Osmani • Chromium blog : New JavaScript techniques for rapid page loads