High Performance HTML5

Similar documents
stevesouders.com/docs/web20expo pptx slideshare.net/souders/souders-wpo-web20expo

Index LICENSED PRODUCT NOT FOR RESALE

HTML5 and CSS3: New Markup & Styles for the Emerging Web. Jason Clark Head of Digital Access & Web Services Montana State University Library

HTML5 - INTERVIEW QUESTIONS

Even Faster Web Sites

Fundamentals of Website Development

Firefox for Android. Reviewer s Guide. Contact us:

Use Page Speed to Optimize Your Web Site for Mobile

UI Course HTML: (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) Introduction. The World Wide Web (WWW) and history of HTML

Techno Expert Solutions An institute for specialized studies!

IGME-330. Rich Media Web Application Development I Week 1

Executive Summary. Performance Report for: The web should be fast. How does this affect me?

Companion Site References

Compatibility via Modernizr

Executive Summary. Performance Report for: The web should be fast. Top 5 Priority Issues. How does this affect me?

UI, API & BACKEND SUCCESS SECRETS

Executive Summary. Performance Report for: The web should be fast. Top 4 Priority Issues

Executive Summary. Performance Report for: The web should be fast. Top 1 Priority Issues. How does this affect me?

Performance Report for: Report generated: Tuesday, June 30, 2015, 3:21 AM -0700

Beyond Cookies: Persistent Storage for Web Applications. Brad Neuberg Google

Introduction to WEB PROGRAMMING

Developer's HTML5. Cookbook. AAddison-Wesley. Chuck Hudson. Tom Leadbetter. Upper Saddle River, NJ Boston Indianapolis San Francisco

footer, header, nav, section. search. ! Better Accessibility.! Cleaner Code. ! Smarter Storage.! Better Interactions.

Advanced JavaScript. Gary Sheppard & James Tedrick

Varargs Training & Software Development Centre Private Limited, Module: HTML5, CSS3 & JavaScript

Web Programming and Design. MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh

HTML5 in Action ROB CROWTHER JOE LENNON ASH BLUE GREG WANISH MANNING SHELTER ISLAND

ethnio tm IMPLEMENTATION GUIDE ETHNIO, INC W SUNSET BLVD LOS ANGELES, CA TEL (888) VERSION NO. 3 CREATED JUL 14, 2017

16. HTML5, HTML Graphics, & HTML Media 웹프로그래밍 2016 년 1 학기 충남대학교컴퓨터공학과

Executive Summary. Performance Report for: The web should be fast. Top 5 Priority Issues. How does this affect me?

HTML5. Language of the Modern Web. By: Mayur Agrawal. Copyright TIBCO Software Inc.

Build Native-like Experiences in HTML5

UNIT 3 SECTION 1 Answer the following questions Q.1: What is an editor? editor editor Q.2: What do you understand by a web browser?

HTML5 MOCK TEST HTML5 MOCK TEST I

HTML5 Evolution and Development. Matt Spencer UI & Browser Marketing Manager

Introduction to HTML 5. Brad Neuberg Developer Programs, Google

Executive Summary. Performance Report for: The web should be fast. Top 5 Priority Issues. How does this affect me?

Frontend UI Training. Whats App :

Evolution of the "Web

the web as it should be Martin Beeby

Executive Summary. Performance Report for: The web should be fast. Top 5 Priority Issues

The course also includes an overview of some of the most popular frameworks that you will most likely encounter in your real work environments.

HTML5. HTML5 Introduction. Form Input Types. Semantic Elements. Form Attributes. Form Elements. Month Number Range Search Tel Url Time Week

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2) Helper Applications & Plug-Ins

Offline-first PWA con Firebase y Vue.js

Jim Jackson II Ian Gilman

Firefox 4 for Mobile Reviewer s Guide. Contact us:

Jquery Manually Set Checkbox Checked Or Not

HTML 5: Fact and Fiction Nathaniel T. Schutta

Eme03. Mobilise your Applications as Progressive Web Apps

Mobile Site Development

HTML5 and Mobile: New Markup & Styles for the Mobile Web. Jason Clark Head of Digital Access & Web Services Montana State University Libraries

Executive Summary. Performance Report for: The web should be fast. Top 5 Priority Issues. How does this affect me?

Visual HTML5. Human Information Interaction for Knowledge Extraction, Interaction, Utilization, Decision making HI-I-KEIUD

Standard 1 The student will author web pages using the HyperText Markup Language (HTML)

Executive Summary. Performance Report for: The web should be fast. Top 5 Priority Issues. How does this affect me?

APEX Unplugged Building Oracle Application Express Applications That Can Survive Without the Internet. Dan McGhan Senior Technical Consultant

Executive Summary. Performance Report for: The web should be fast. Top 5 Priority Issues. How does this affect me?

Software. Full Stack Web Development Intensive, Fall Lecture Topics. Class Sessions. Grading

COURSE OUTLINE MOC 20480: PROGRAMMING IN HTML5 WITH JAVASCRIPT AND CSS3

Computer Systems Department, University of Castilla-La Mancha Albacete, Spain

Executive Summary. Performance Report for: The web should be fast. Top 5 Priority Issues. How does this affect me?

HTML5, CSS3, JQUERY SYLLABUS

Executive Summary. Performance Report for: The web should be fast. Top 5 Priority Issues

Manual Html A Href Javascript Window Open New Browser

Qiufeng Zhu Advanced User Interface Spring 2017

The Web, after HTML5. Jonghong Jeon. 9 December 2015

Using HTML5 Offline Storage. Brady Eidson Safari and WebKit Engineer

Index. Bootstrap framework ASP.NET MVC project set-up, default template, 223

Writing Secure Chrome Apps and Extensions

If you are supplying a 970x250 Billboard or 970x90 Super Leaderboard you must supply the following sizes for Mobile and Tablet:

Building Native Mapping Apps with PhoneGap: Advanced Techniques Andy

Scripting. Web Architecture and Information Management [./] Spring 2009 INFO (CCN 42509) Contents

Cookies and Other Client-Side Storage Techniques. Bok, Jong Soon

HTML 5 and CSS 3, Illustrated Complete. Unit L: Programming Web Pages with JavaScript

PROGRESSIVE WEB APPS & EDUCATION

Executive Summary. Performance Report for: The web should be fast. Top 5 Priority Issues. How does this affect me?

STRANDS AND STANDARDS

Overview

Homework 8: Ajax, JSON and Responsive Design Travel and Entertainment Search (Bootstrap/Angular/AJAX/JSON/jQuery /Cloud Exercise)

Web Architecture Review Sheet

WEB DESIGNING CURRICULUM

HTML5 Creatives. MediaMath now supports HTML5 Creatives. Each T1AS HTML5 Creative must be uploaded with the following 2 components:

WHAT IS WEBKIT? COPYRIGHTED MATERIAL SMASHING WEBKIT CHAPTER 1

Inline HTML Editor does not load preventing typing in text field

Frontend guide. Everything you need to know about HTML, CSS, JavaScript and DOM. Dejan V Čančarević

COPYRIGHTED MATERIAL. Defining HTML5. Lesson 1

Basics of Web Technologies

Learn Web Development CodersTrust Polska course outline. Hello CodersTrust! Unit 1. HTML Structuring the Web Prerequisites Learning pathway.

Speeding up Web Page Loads with Shandian. Sophia Wang University of Washington

Web Performance in

Mobile Assets. Rainer Borchert, Google. Industry Leader

Course 20480: Programming in HTML5 with JavaScript and CSS3

COURSE 20480B: PROGRAMMING IN HTML5 WITH JAVASCRIPT AND CSS3

Build Your Own Web Site The Right Way Using HTML & CSS, 2nd Edition By Ian Lloyd READ ONLINE

Pop-up. File format/ size: Must provide (.gif or.jpg) still image - max. 75KB for Mobile - max. 400KB for Tablet

Touch Forward. Bill Fisher. #touchfwd. Developing Awesome Cross-Browser Touch

Site Speed: To Measure Is To Know. Sava Sertov QA Technical Lead ecommera

('cre Learning that works for Utah STRANDS AND STANDARDS WEB DEVELOPMENT 1

Programming in HTML5 with JavaScript and CSS3

Transcription:

High Performance HTML5 stevesouders.com/docs/velocity-html5-20111207.pptx Disclaimer: This content does not necessarily reflect the opinions of my employer. flickr.com/photos/djbiesack/85833076/

High Performance HTML5 http://www.w3.org/tr/html5/ flickr.com/photos/djbiesack/85833076/

Web WPO Performance Optimization drives traffic improves UX increases revenue reduces costs flickr.com/photos/pedromourapinheiro/3123885534/

Web Performance Working Group chartered June 2010 Web Timing Navigation Timing User Timing Resource Timing Page Visibility Script-based animations Efficient script yielding http://www.w3.org/2010/webperf/

Navigation Timing var timing = performance.timing; var loadtime = timing.loadeventend timing.navigationstart; Chrome 6+, IE9+, Firefox 7+, Android 4+ http://blog.chromium.org/2010/07/do-you-know-how-slowyour-web-page-is.html flickr.com/photos/wwarby/3296379139/

on by default GA site speed browsers that support Nav Timing Chrome 6+ IE9+ Firefox 7+ (buggy) Android 4+ 1% sampling rate by default can change to 10% _setsitespeedsamplerate() http://analytics.blogspot.com/2011/11/site-speednow-even-easier-to-access.html

Resource Timing DNS, redirects, etc. security safeguards User Timing for web apps mark, measure flickr.com/photos/juditk/5024772809/

Page Visibility detect when page is visible stats video & audio polling, DHTML performance: prefetching, prerendering Chrome 13: document.webkithidden webkitvisibilitychange code.google.com/chrome/whitepapers/pagevisibility.html flickr.com/photos/96221617@n00/51603550/

script async & defer script src halts parsing, blocks rendering async execute once script is downloaded defer execute after page is parsed missing download & execute last download last, execute on demand flickr.com/photos/gevertulley/4771808965/

GMail Mobile <script type="text/javascript"> /* var... */ </script> get script DOM element's text remove comments eval() when invoked awesome for prefetching JS that might (not) be needed http://goo.gl/l5zlq

ControlJS a JavaScript module for making scripts load faster just change HTML inline & external scripts <script type="text/cjs" data-cjssrc="main.js"> </script> <script type="text/cjs"> var name = getname(); </script>

ControlJS a JavaScript module for making scripts load faster download without executing <script type="text/cjs" data-cjssrc="main.js data-cjsexec=false> <script> Later if/when needed: CJS.execScript(src);

app cache offline apps, longer cache flickr.com/photos/india-nepal-iran/203982474/

yuiblog.com/blog/2007/01/04/performance-research-part-2/

blaze.io/mobile/understanding-mobile-cache-sizes/

Home screen apps on iphone are slower because resources are re-requested even though they should be read from cache.

app cache offline apps, longer cache <!doctype html> <html manifest= myapp.appcache > myapp.appcache: CACHE MANIFEST # Revision: 1.28 CACHE: /images/logo.gif NETWORK: /login.html FALLBACK: /index.html /offline.html Content-Type: text/cache-manifest flickr.com/photos/india-nepal-iran/203982474/

app cache gotchas html docs w/ manifest are cached 404 => nothing is cached size: 5MB+ must rev manifest to update resources update is served on 2 nd reload (?!?!) flickr.com/photos/97657657@n00/1918688483/

push app logo.gif = user loads app app cache is empty fetch manifest fetch logo.gif app cache = user sees app cache reload push app logo.gif = rev manifest user loads app app cache = user sees fetch manifest fetch logo.gif app cache = user loads app again app cache = user sees fetch manifest (304)

load twice workaround window.applicationcache.addeventlistener('upda teready', function(e) { if ( window.applicationcache.status == window.applicationcache.updateready) { if ( confirm( Load new content? ) ) {... http://www.webdirections.org/blog/get-offline/ http://www.html5rocks.com/en/tutorials/appcache/beginner/ flickr.com/photos/presley_m/5152304885/

localstorage window.localstorage: setitem() getitem() removeitem() clear() also sessionstorage all popular browsers, 5MB max http://dev.w3.org/html5/webstorage/ http://diveintohtml5.org/storage.html flickr.com/photos/bryanpearson/564703455/

localstorage as cache 1 st doc: write JS & CSS blocks to localstorage mres.-0yduqj03u8hjija: <script>(function(){... set cookie with entries & version MRES=-0yDUQJ03U8Hjija:-4EaJoFuDoX0iloI:... later docs: read JS & CSS from localstorage document.write( localstorage.getitem(mres.-0ydu QJ03U8Hjija) ); http://stevesouders.com/blog/2011/03/28/storager-casestudy-bing-google/ flickr.com/photos/nelsoncruz/431244400/

@font-face * IE9 does not display a blank page, but does flash the element. stevesouders.com/blog/2010/06/01/frontend-spof/ Worth delaying most important design elements? Or entire page? flickr.com/photos/typoatelier/4261455105/

flickr.com/photos/imbrettjackson/520656349/

improving @font-face smaller, custom font files avoid FOUT, impatient fallback n milliseconds DOM loaded, window onload user interaction higher priority caching aggressively use expired fonts today: localstorage flickr.com/photos/firebrat/2711165108/

there s more CSS instead of images: border radius, linear & radial gradients, drop shadow SVG, inline SVG, and canvas video tag WebSockets web workers builtin controls: progress, datetime flickr.com/photos/dualphoto/2609096047/

and more history http://www.kylescholz.com/blog/ 2010/04/html5_history_is_the_future.html <a ping requestanimationframe not timers native JSON parse/stringify http://bit.ly/browserscope-modernizr http://www.html5rocks.com/ flickr.com/photos/kaptainkobold/5741327207/

Thanks to Max Firtman Tony Gentilcore Josh Fraser Kyle Scholz Stoyan Stefanov James Pearce Lindsey Simon Annie Sullivan Tim Kadlec Paul Irish Jason Grigsby Brad Neuberg flickr.com/photos/robertvega/3944132320/

more stuff flickr.com/photos/markdodds/399252797/

developers.google.com/pagespeed/?velocity=1

Top 100 Top 1000

takeaways speed matters WPWG window.performance async & defer app cache, localstorage! @font-face flickr.com/photos/myklroventine/4062102754/

Steve Souders @souders http://stevesouders.com/docs/velocity-html5-20111207.pptx