Joined February 2012
·
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.
Posted to
DO NOT $('#foo a'); DO $('#foo').find('a');
over 1 year
ago
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.
Posted to
DO NOT $('#foo a'); DO $('#foo').find('a');
over 1 year
ago
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
Altruist
Increase developer well-being by sharing at least 20 open source projects
Komodo Dragon
Have at least one original repo where Java is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Honey Badger
Have at least one original Node.js-specific repo
Forked
Have a project valued enough to be forked by someone else
Cub
Have at least one original jQuery or Prototype open source repo
Charity
Fork and commit to someone's open source project in need
Bear
Have at least one original repo where Objective-C is the dominant language
Nephila Komaci
Have at least one original repos where PHP is the dominant language