Chrome Dev Tools
Upcoming SlideShare
Loading in...5
×
 

Chrome Dev Tools

on

  • 897 views

Google's Chrome browser has an amazing array of built in tools that allow us to both find problems in our websites and allow us to improve, all for free. This talk is for all front end developers ...

Google's Chrome browser has an amazing array of built in tools that allow us to both find problems in our websites and allow us to improve, all for free. This talk is for all front end developers working in JavaScript and/or CSS. I will show how to spot performance issues, find memory leaks and how to fix them both. And best of all I will present some easy to remember rules of thumb to prevent these issues from re-occurring.

Statistics

Views

Total Views
897
Views on SlideShare
318
Embed Views
579

Actions

Likes
0
Downloads
4
Comments
0

39 Embeds 579

http://therockncoder.blogspot.com 294
http://therockncoder.blogspot.in 48
http://therockncoder.blogspot.de 30
http://therockncoder.blogspot.co.uk 24
http://therockncoder.blogspot.ca 21
http://therockncoder.blogspot.com.br 18
http://feedly.com 18
http://therockncoder.blogspot.com.au 17
http://therockncoder.blogspot.it 15
http://therockncoder.blogspot.com.es 13
http://therockncoder.blogspot.ie 7
http://therockncoder.blogspot.gr 7
http://therockncoder.blogspot.fr 7
http://therockncoder.blogspot.kr 7
http://therockncoder.blogspot.nl 6
http://therockncoder.blogspot.hk 6
http://therockncoder.blogspot.ro 3
http://therockncoder.blogspot.sg 3
http://therockncoder.blogspot.ru 3
http://coder456.rssing.com 3
http://therockncoder.blogspot.com.ar 3
http://therockncoder.blogspot.pt 3
http://therockncoder.blogspot.se 3
http://therockncoder.blogspot.jp 2
http://therockncoder.blogspot.dk 2
http://therockncoder.blogspot.fi 2
http://therockncoder.blogspot.com.tr 2
http://therockncoder.blogspot.co.at 1
http://java.dzone.com 1
http://therockncoder.blogspot.mx 1
http://www.slideee.com 1
http://therockncoder.blogspot.no 1
http://digg.com 1
http://www.inoreader.com 1
https://reader.aol.com 1
http://www.therockncoder.blogspot.de 1
http://therockncoder.blogspot.co.nz 1
http://therockncoder.blogspot.ch 1
http://therockncoder.blogspot.be 1
More...

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Chrome Dev Tools Chrome Dev Tools Presentation Transcript

    • Chrome Dev Tools How to ImproveYour Site’s Performance
    • Android Wear Talk • Smart watches are hot! • Google is getting into the game • Get ahead of the curve • Free talk April 24th in LA • http://bit.ly/1g6RMf6
    • Beginning Android Class • Saturday, May 10th & 17th • From installing the SDKs… • to deploy to the Play Store • Learn pro development tips and techniques • http://bit.ly/1kqsqjP
    • Our Agenda • The three pillars of page performance • The Chrome Dev Tools • Network tools • Performance tools • Rendering tools
    • The Three Pillars of Page Performance • Network - Connection Speed + Latency • Compute - JavaScript • Render - Layout + Paint
    • GradeYour Site • Google’s PageSpeed Insights • https://developers.google.com/speed/ pagespeed/insights • Yahoo’sYSlow • https://developer.yahoo.com/yslow/
    • PageSpeed Insights Demo
    • Chrome Dev Tools • Elements • Network • Sources • Timeline • Profiles • Resources • Audits • Console
    • Chrome Dev Tools • Elements • Network • Sources • Timeline
    • Network Panel • Shows how long it takes for your site to download • latency - server processing time • DOMContentLoaded - The whole document has been loaded • load - The document and its resources are loaded
    • Images • For most sites, images are the biggest resource and the easiest win • Be sure to use the right image type • Be sure to use the right image size • Use sprite maps instead individual images
    • Image Types • JPG - is for photos • Can usually get good quality down to 75% • PNG - is for images • Be sure to pngcrush or other compression utility
    • Not Using Compression? • In one case we scaled a 640x480 image down to 147x110 • This is 18 times more data than it should be
    • Yahoo! Smush It Demo
    • Performance Tools
    • Users don't care if an app is desktop or browser based, they want it to be buttery- smooth. Buttery-smooth is the opposite of janky. It is defined as 60 frames a second, or 16.6 ms per frame
    • Performance Tools • The performance tools measure the amount of time it takes to render • It can also tell you frames per second • And even potential issues
    • Performance Tool Demo #1
    • Rendering Options • Show paint rectangles • Show composite layer borders • Show FPS meter • Enable continuous page repainting • Show potential scroll bottlenecks
    • Show Paint Rectangles • Shows the area of the screen being repainted • Watch rectangles, the paint will union small rectangles together
    • Show composite layer borders • Layering is a bit complicated • Layering requires CSS3 • It uses CSS Transform • Not 100% kosher
    • Show FPS meter • Running clock of the FPS • And your min and max frame rate • Graph of your sites performance
    • Enable continuous page repainting • Repaints continuously to show problems • Best when used with Show Paint Rects.
    • Show potential scroll bottlenecks • Scrolling is a place for your site to shine • Turning this feature on shows: • Events hook up to scroll • Areas of the page which are repainted
    • Performance Demo #2
    • Resources
    • • Chrome Dev Tools
 https://developers.google.com/chrome- developer-tools/ • Yahoo! Smush It
 http://www.smushit.com/ysmush.it/ • PageSpeed Insights
 http://developers.google.com/speed/ pagespeed/insights/
    • • PNGCRUSH
 http://pmt.sourceforge.net/pngcrush/ • Making Layers
 http://aerotwist.com/blog/on-translate3d- and-layer-creation-hacks/ • How Browsers Work
 http://www.html5rocks.com/en/tutorials/ internals/howbrowserswork/