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,656 Total ProTip Views
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/altrustic-fea3bde05a17a18ff6420dbd7a646cc4536c51f46db27536401e56bee0dc086a.png)
Altruist
Increase developer well-being by sharing at least 20 open source projects
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/komododragon-4a367331904f40950f6ad91fe236c48eec07fe8e0087471dbf7a17c6c6ed7923.png)
Komodo Dragon
Have at least one original repo where Java is the dominant language
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/walrus-1f517cbbd8f030099b8386c53d4ee40fece3fa146b6362accb3abddb436482cb.png)
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/honeybadger-e6a507524dd5b8b273f39b437d9da1c1bbbb434a59a060a1fe67e3ad83736261.png)
Honey Badger
Have at least one original Node.js-specific repo
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/forked1-63f23ad054823f6065b4526f8552dbc2c4fbaa75d22db7150d700201218ac426.png)
Forked
Have a project valued enough to be forked by someone else
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/cub-d811dfda174e9ca232964477c16369e9ed8caf4a47d746348a358f3579b8ffdc.png)
Cub
Have at least one original jQuery or Prototype open source repo
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/charity-bab6d575c53894cc9e395db7cdb1f0f91f176fa0cc8122c5f824e672f3d556a4.png)
Charity
Fork and commit to someone's open source project in need
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/bear-5c19af6347f82c65ad573ca74334eb155a8b3bb617607752895dc6751c6c88fc.png)
Bear
Have at least one original repo where Objective-C is the dominant language
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/nephilakomaci-ff83276c8b6c472f151b6e3fbcbc31067ae72425f57a22742f9124501b02cd71.png)
Nephila Komaci
Have at least one original repos where PHP is the dominant language