cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <div class="reveal">

  <!-- Any section element inside of this container is displayed as a slide -->
  <div class="slides">
    <section>
      <h1>Frontend Performance</h1>
      <h3>Only you can prevent slow websites!</h3>
      <p>
        <small>As presented by Josh Fabean / <a href="https://twitter.com/joshfabean">@joshfabean</a></small>
      </p>
    </section>

    <section>
      <section>
        <h2>There is not some buzzword fix</h2>
        <p>
          This is a discipline, not something you magically do overnight.
        </p>
      </section>
      <section data-background="https://25.media.tumblr.com/7d43dfb3bba0ad41fb7e3807f64a9c9e/tumblr_mkbxk0qeoV1qm2l53o3_250.gif">
        <h2>While being a level 5 laser lotus helps...</h2>
        <p>
          It's not required.
        </p>
      </section>
      <section>
        <h2>You need a brain</h2>
        <p>
          I hope you have one.
        </p>
        <img src="http://vignette2.wikia.nocookie.net/arthur/images/5/56/Brain_S17_Brain_Freeze_1.png/revision/latest?cb=20141206221149" />
      </section>
    </section>

    <!-- Example of nested vertical slides -->
    <section>
      <section>
        <h2>Time is important!</h2>
        <p>Life is holy and every moment precious</p>
      </section>
      <section>
        <h2>So stop wasting everyone's time!</h2>
      </section>
    </section>

    <section>
      <section>
        <h2>Web has been trending the wrong way for a long time</h2>
        <p>
          We don't want to declare performance bancrupcy
        </p>
        <img src="http://www1.pictures.zimbio.com/mp/O5Uwj1m_rg-x.gif" />
      </section>
      <section>
        <h2>The web is getting slower</h2>
        <p>that is bad</p>
      </section>
      <section>
        <h2>It's called World Wide Web</h2>
        <p>not everyone in the world has Google Fiber</p>
      </section>
      
    </section>

    <section>
      <section>
        <h2>We use caching, so we're fine</h2>
        <p>Kerry has done his job, but you have failed at yours</p>
      </section>
      <section>
        <h2>No amount of caching & servers can fix everything</h2>
        <p>
          If you're making people download a 5MB+ site to read a blog you have failed.
        </p>
      </section>
      <section>
        <h2>You can have the best servers in the world</h2>
        <p>If your front end performance sucks, none of that matters</p>
      </section>
      <section>
        <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/15439/Screenshot_2016-05-20_11.29.17.png" />
      </section>
    </section>

    <section>
      <section>
        <h2>This is hard</h2>
        <p>
          We won't master this overnight.
        </p>
      </section>
      <section>
        <p>
          <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/15439/Screenshot_2016-05-20_11.33.32.png" />
        </p>
      </section>
      <section>
        <p>It used to be what speed drives do the servers have, what type of caching are we doing...</p>
        <p>That's a figured out art now, so now we have new places we need to improve</p>
      </section>
    </section>

    <section>
      <section>
        <h2>Who cares?</h2>
        <p>
          Google
        </p>
      </section>
      <section>
        <p>This isn't just people will be 3% more happy when visiting your site, it's Google will rank you higher.</p>
        <p>For large clients we could we talking about thousands or millions of dollars here.</p>
      </section>
      <section>
        <h2>People have websites because they want to get something done</h2>
        <p>A faster website helps people get things done and ship more products</p>
      </section>
      <section>
        <p>If we don't do the last mile, it doesn't matter what we did on the backend.</p>
      </section>
    </section>
    
    <section>
      <section>
        <h2>Okay, how fast?</h2>
      </section>
      <section>
        <h2>There are thresholds</h2>
        <img src="https://media.giphy.com/media/3o7qDXPQLnFReu8YCY/giphy.gif" />
      </section>
      <section>
        <h2>100ms is BEST case senario</h2>
        <p>Basically real time</p>
      </section>
      <section>
        <h2>1s is good enough</h2>
        <p>It won't break the train of thought, they will notice there is a pause but they won't be frustrated</p>
      </section>
      <section>
        <h2>10s is terrible</h2>
        <p>No one is still on your website</p>
        <p>The users will want to die</p>
        <p>Back to techcrunch :)</p>
      </section>
      <section>
        <p>Some stats on 10s wait times</p>
        <ul>
          <li>30% increase in heart-rate</li>
          <li>Comparable to watching a horror movie</li>
          <li>Significantly more stress than waiting in line at a store</li>
        </ul>
      </section>
      <section>
        <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/15439/Screenshot_2016-05-20_11.49.45.png" />
      </section>
    </section>
    
    <section>
      <section>
        <h2>Sell the client</h2>
        <p>They don't want to make their users mad!</p>
      </section>
      <section>
        <ul>
          <li>Good UX sells more products</li>
          <li>Google ranks you higher</li>
          <li>If your site is slow people will buy elsewhere</li>
          <li>Faster speeds means you spend more useful time on the site</li>
          <li>You don't want to punch users in the face the second they come to their site</li>
        </ul>
      </section>
      
    </section>

  </div>

</div>
            
          
!
            
              var link = document.createElement( 'link' );
			link.rel = 'stylesheet';
			link.type = 'text/css';
			link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
			document.getElementsByTagName( 'head' )[0].appendChild( link );


Reveal.initialize({
				controls: true,
				progress: true,
				history: true,
				center: true,

				transition: 'slide', // none/fade/slide/convex/concave/zoom

				// Optional reveal.js plugins
			});
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console