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.
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.
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.
Let's start with the JavaScript libraries. WordPress uses jQuery heavily. It uses: jQuery.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With