I started learning jQuery more than 10 years ago. I needed to implement Ajax and make pages more dynamic - or so my boss regurgitated at meeting one day. I had been toying with HTML since the stone age (1996) and started learning PHP/MySQL because our simple site just had to have it.
I found the simplest setup for an Ajax call I could find (roughly 20 lines of code, I think) and started making requests to PHP. I had PHP render all the HTML which I passed back and dumped via
.innerHTML... Ah, the good ol' days. (lol)
A lot has changed since then, primarily finding and learning jQuery -- which led to me landing my current position.
Little did I know I was walking into a hornets' nest with this Backbone.js/jQuery project. It had already been in production for a year or two and I was told to never, ever, under any circumstance, update any of the existing libraries, especially jQuery (because, in the past, everything broke).
That was all well and good, until a client ran a scan for vulnerabilities on our system. Oops! I was now told jQuery (1.7 at the time) had to be updated, as well as any and all libraries that could be updated. This, ladies and gentlemen, was not fun.
Now that all of our libraries have been updated and our potential client is our actual client, I have decided to refactor as much/many of our views as I can without the use of jQuery. I started out just using some arrow functions, changing
.innerHTML. I'm currently writing mini-libraries to replace jQuery UI (among others).
However, I'd be remiss to not leave you with some of the resources that have really been helping me:
- Moving from jQuery
- (Now More Than Ever) You Might Not Need jQuery
I would love to see what resources/methods others have incorporated to make this change. Please comment with your story/path/whatever!
*Please don't bother commenting with rants about not upgrading earlier.
Check out Refactoring jQuery to continue this journey with me.
Level up every day