jQuery is a powerful tool for front-end developers, but it does not alleviate the responsibility of ensuring your code is efficient.
Array(16).join("wat" - 1) + " Batman!";
Writing tests is an important part of software development process. Unit tests form a core part of testing process where each functional block is tested as an independent unit.I
Converting XML files to JSON is a good practice for providing easy manipulation and preparing service responses. You can accomplish this efficiently with just three lines of code.
Tabbed browsing has become the standard so modern browsers have provided a way for developers to determine if a tab has focus. This uses the HTML 5 Page Visibility API.
Sure there are plugins that will do this for you, but here's a quick and easy way.
There are plenty of reasons to install node. I first installed it because it was required for Ruby on Rails, but recently I've started making better use of it.
In this guide, I'll provide sample code for animating scroll in jQuery, and for those looking for more I'll break down each component.
If you've never handled keyboard events in jQuery this is a good place to start.