KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
On every document ready I need to get the body tag via jQuery and I'm more curious about the answer to this than anything else. Let's say this is the body tag on every page on my site: <body id="body"> Is it faster to query the body tag by just the tag name: $('body') or query it by its id: $('#body')
Tags (comma-separated)
Save Edits
Cancel