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

Faster Front End Performance

Matt Farina
December 07, 2011

Faster Front End Performance

An introduction to Front End Performance in given at DrupalCon Chicago in March of 2011. A video of the presentation is available at http://www.archive.org/details/drupalconchi_day3_faster_front_end_performance

Matt Farina

December 07, 2011
Tweet

More Decks by Matt Farina

Other Decks in Technology

Transcript

  1. Dan Mouyard TerpSys Accessibility & Performance Focused Themer 3 Years

    With Drupal World Champion Old-Time Piano Player (dcmouyard)
  2. Matt Farina Palantir.net Co-Author of Drupal 7 Module Development Core

    Contributor Over 5.5 Years With Drupal (mfer)
  3. SEO

  4. page.tpl.php    <html>        <head>      

         $styles        </head>        <body>            $scripts            $closure        </body>    </html> Placement in Drupal 6
  5. html.tpl.php    <html>        <head>      

         $styles        </head>        <body>            $scripts            $page_bottom        </body>    </html> Placement in Drupal 7
  6. <div  id="nav">    <ul  class="nav-­‐list">        <li  class="nav-­‐item">

               <a  id="menu-­‐link-­‐42"  class="nav-­‐link"></a>        </li>    </ul> </div> Quick! Get that link!
  7. <div  id="nav">    <ul  class="nav-­‐list">        <li  class="nav-­‐item">

               <a  id="menu-­‐link-­‐42"  class="nav-­‐link"></a>        </li>    </ul> </div> div#nav  ul.nav-­‐list  li  a Quick! Get that link!
  8. <div  id="nav">    <ul  class="nav-­‐list">        <li  class="nav-­‐item">

               <a  id="menu-­‐link-­‐42"  class="nav-­‐link"></a>        </li>    </ul> </div> #nav  .nav-­‐list  li  a Quick! Get that link!
  9. <div  id="nav">    <ul  class="nav-­‐list">        <li  class="nav-­‐item">

               <a  id="menu-­‐link-­‐42"  class="nav-­‐link"></a>        </li>    </ul> </div> #nav  >  .nav-­‐list  >  li  >  a Quick! Get that link!
  10. <div  id="nav">    <ul  class="nav-­‐list">        <li  class="nav-­‐item">

               <a  id="menu-­‐link-­‐42"  class="nav-­‐link"></a>        </li>    </ul> </div> #nav  a Quick! Get that link!
  11. <div  id="nav">    <ul  class="nav-­‐list">        <li  class="nav-­‐item">

               <a  id="menu-­‐link-­‐42"  class="nav-­‐link"></a>        </li>    </ul> </div> #nav  a Quick! Get that link! * Never use the universal selector!
  12. <div  id="nav">    <ul  class="nav-­‐list">        <li  class="nav-­‐item">

               <a  id="menu-­‐link-­‐42"  class="nav-­‐link"></a>        </li>    </ul> </div> #nav  .nav-­‐link Quick! Get that link!
  13. <div  id="nav">    <ul  class="nav-­‐list">        <li  class="nav-­‐item">

               <a  id="menu-­‐link-­‐42"  class="nav-­‐link"></a>        </li>    </ul> </div> #nav  #menu-­‐link-­‐42 Quick! Get that link!
  14. <div  id="nav">    <ul  class="nav-­‐list">        <li  class="nav-­‐item">

               <a  id="menu-­‐link-­‐42"  class="nav-­‐link"></a>        </li>    </ul> </div> #menu-­‐link-­‐42 Quick! Get that link!
  15. People view web pages in browsers html, images, css, js

    server side performance != seen performance for users Resources • Even Faster Websites by Steve Souders • Steve Souders blog - http://stevesouders.com/ • Web Performance Best Practices - http:// code.google.com/speed/page-speed/docs/ rules_intro.html • YDN Performance - http://developer.yahoo.com/ performance/
  16. Q&A

  17. What did you think? Locate this session on the DCC

    website: http://chicago2011.drupal.org/sessions Click the “Take the Survey” link. Thanks!