Joined February 2012
·

Adam Argyle

Web Engineer at Lively
·
Seattle
·
·
·

Posted to OOCSS - My Top 5 Most Reused over 1 year ago
  • selectors are slow for redraw/reflow/layout. For highest perf, only apply styles to the elements that need it.
Posted to Cache your scripts with localStorage over 1 year ago

Falls short in speed. Check my updates tip for a link to a perf test between browser cache and localStorage.

this tip in vanilla js = document.getElementById('foo').querySelector('a'). just throwing that in there so the practice can extend into non-jquery js apps.

burntime, those results are crazy. looks like i can write a selector any way i want to now. is it jquery fixing and optimizing my bad selector or is the browser?

Achievements
861 Karma
19,798 Total ProTip Views