With the popularity of the web on mobile (as of 2014 it surpassed desktop browsing) you could see why it has become essential for a developer to also work on developing a mobile friendly and responsive site. With mobile devices generally having much slower internet than a typical desktop, a developer has to be conscious of load times.
An example of adding a class jQuery:
if (el.classList) el.classList.add(className); else el.className += ' ' + className;
Do you need to stop using jQuery?
Despite the title of this post, we are not insinuating that jQuery is always the wrong choice, as it can be a good option for certain projects; it just shouldn’t be selected every time without evaluating other options. This post was written to help encourage developers to make the correct choice of their tools and methods for themselves by understanding that no library is always the best library.