LeaVerou / bliss

Blissful JavaScript
http://blissfuljs.com
MIT License
2.39k stars 101 forks source link

add $id() and $.$id() for better performance using document.getElemen… #227

Closed KevinHua closed 5 years ago

KevinHua commented 5 years ago

…tById()

LeaVerou commented 5 years ago

Hi there,

Thank you for contributing! However, these days the performance benefits of using document.getElementById() over document.querySelector() are fairly negligible for the majority of apps. We tend to avoid adding functions that are this niche. However, you can easily add this to Bliss on your own projects, as a plugin!

Sorry about that, hope it doesn't discourage you from future contributions!

Cheers, Lea