Category Archives: jQuery

Improve performances with jQuery best practices

Nowadays we include jQuery almost by default in most of our DDH projects. It offers so much to both designers and developers that it would be very difficult to complete a project without it.

As with most libraries, jQuery includes an incredibly large collection of elements and behaviours, more than we will ever use in one single development.

  • The good bits: it’s ready to use, highly customisable and, most more often than not, cross browser compatible.
  • The bad bit: might not be as performant as a custom built JS library.

Performance is key to a successful website, even more so when dealing with a large amount of data.

Although we might not want to go down the route of custom built JS libraries (time consuming), we can adopt some good practices to keep performances at their best while enjoying every bit of this jQuery magic.

This document covers some of the common standards worth looking at: jQuery Coding Standards & Best Practices.