Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you keep your Javascript libraries updated to the latest versions in a large web project?

When working on a larger web project (say 20 plus pages), how do you keep your Javascript libraries updated to the latest versions? I specifically use jQquery a lot. It seems like everytime I look, there is a new version out. I include the jQuery library on all my pages and it's a pain to have to update it on each page. What do other people do? I'm sure a big answer will be to use a framework with a single front controller. And I have considered that, but I'm not ready to go that route yet.

like image 934
dmikester1 Avatar asked May 05 '11 21:05

dmikester1


People also ask

What is a JavaScript library for building interactive web applications?

JavaScript libraries contain various functions, methods, or objects to perform practical tasks on a webpage or JS-based application. You can even build a WordPress site with them. Think of them as a book library where you revisit to read your favorite books.

How many libraries are there in JavaScript?

In case you're wondering how many JavaScript frameworks are there, according to Wikipedia (which isn't the most trusty source, but hey), there are at least 24 JS frameworks and around 83 libraries.

Which JavaScript library is used for WordPress?

Let's start with the JavaScript libraries. WordPress uses jQuery heavily. It uses: jQuery.


1 Answers

We don't.

It might automatically break things when an update is not backwards compatible. We check the mailing lists and forums regularly too check if new versions have come out, read the changelog and/or codediff, and check our plugins for compatibility. We usually clone the server to a goldencoat, test the new version there and see if anything breaks.

If the advantages outweigh the effort needed for the update, we do so, but only after enough time has passed and the version's initial bugs have been found and solved by the community.

like image 90
Konerak Avatar answered Nov 04 '22 14:11

Konerak