Google I/O 2012 - Jank Busters: Building Performant Web Apps
Sign in to YouTube
Sign in to YouTube
Sign in to YouTube
Published on Jun 29, 2012
Nat Duca, Tom Wiltzius
Building high-performance web apps is hard! When animations hitch, mouse hover effects lag, or page scrolls stutter, we call it jank. This talk is about hunting jank down and exterminating it.
Sources of jank in web apps include garbage collector runs, long image decodes, heavy paint times for DOM elements, JavaScript-heavy input handlers, unexpected WebKit layer invalidations, and more -- all getting in the way of the 60FPS every modern app developer should aim for. In this talk we'll go through a few techniques to ensure your web app has smooth animations, transitions, and scrolling. We'll cover ways to use Chrome's Developer Tools to root out jank, as well as more advanced Chrome graphics profiling tools the intrepid can use to dig into what's going on behind the scenes. We'll even peek gingerly under the covers of WebKit to explain why that pesky hitch occurs in the first place.
For all I/O 2012 sessions, go to https://developers.google.com/io/
-
Category
-
License
Standard YouTube License
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
-
1:05:27
Study Music Brain Power: New Age Music, Relaxing Music, Concentration Music & Focus on Learningby meditationrelaxclubFeatured
1,057,300
-
47:35
Google I/O 2012 - Breaking the JavaScript Speed Limit with V8by Google Developers
41,272 views
-
43:09
Google I/O 2012 - SQL vs NoSQL: Battle of the Backendsby GoogleDevelopers
109,934 views
-
59:54
Google I/O 2012 - It's a Startup Worldby Google Developers
5,968 views
-
55:16
Google I/O 2009 - The Myth of the Genius Programmerby GoogleDevelopers
219,460 views
-
51:41
Google I/O 2012 - GRITS: PvP Gaming with HTML5by Google Developers
36,365 views
-
48:26
Google I/O 2012 - Better Web App Development Through Toolingby Google Developers
61,969 views
-
47:45
Google I/O 2012 - The Web Platform's Cutting Edgeby GoogleDevelopers
18,823 views
-
52:11
Google I/O 2012 - Google Cloud Messaging for Androidby Google Developers
25,050 views
-
34:13
Google I/O 2013 - Chrome DevTools Revolutions 2013by GoogleDevelopers
2,709 views
All Comments (19)
Josh Bedo 1 month ago
Chromium is intended for developers and has a lot of unreleased features because they're still in production but they help developers. Things like convert CSS to SASS and revisioning.
Sign in to YouTube
Sign in to YouTube
dsego84 2 months ago
Maybe chrome is janky, Safari is smooth as butter.
Sign in to YouTube
Sign in to YouTube
Homezone 4 months ago
They work for Google and use Chromium? o_O
Sign in to YouTube
Sign in to YouTube
ericthewino 4 months ago
cool. thanks for pointing me to the time. i guess it would be best to recache on resize.
Sign in to YouTube
Sign in to YouTube
fezec 4 months ago
It's because they already retrieved the layout calculation. Note the code at 13:08. Line 57 says if heavy scroll which is what he toggles on his demo. This forces line 58 to run, which retrieves the scrollTop from the body, forcing a calculation of the DOM, but line 54 shows that he already asked for this.
When he toggles off heavyScroll rather than use line 58 it uses 60 in the else statement. Here it makes use of the cachedScrollTop thereby not forcing yet another recalculation.
Sign in to YouTube
Sign in to YouTube
ericthewino 4 months ago
sorry i don't get what happened around 14:40 that made the event less delay. was the scrolltop cached?
Sign in to YouTube
Sign in to YouTube
Lucas Rizoli 6 months ago
This is a very good talk: your explanations and recommendations and demos are clear, you handle the questions well and frankly. Thanks.
Sign in to YouTube
Sign in to YouTube
MediaFilter 6 months ago
Funny guys, good talk!
Sign in to YouTube
Sign in to YouTube