Responsive Design - HTML5 DevCon 2013

having a page which loads fast is the #1 things for Responsive sites

cut down on size of html
avoid reflows by using docFragment
cache results of selectors
group css updates into classes

use css hardware acceleration
css gradients...an img sliver may be better
css shadows....use limited or consider just a border of light grey color
css blur... can be a performance impact

minimze http requests
minify
compress images to just size you need
use sprites
load page as fast as possible

ask yourself if you need a given framework
 - do you need the backwards capability?
 -
you should know what library is doing so you can optimize
document.body.querySelector('#urid')
document.body.querySelectorAll('.myClass')
These are since IE8

A native js loop is faster than $.each


Checkout jsperf.com you can profile code in your app, see how it runs on platforms & browsers.

Comments

Popular posts from this blog

deep dive into Material UI TextField built by mui

angular js protractor e2e cheatsheet

react-router v6.4+ loaders, actions, forms and more