Hacker News new | ask | show | jobs
by abiogenesis 1987 days ago
What we need is a Jquery-to-VanillaJS transpiler.
1 comments

Uh, what do you think jQuery is written in?
jQuery is written in JS, but if your code is using jQuery functions you are not writing "vanilla JS" anymore. Otherwise we wouldn't need the term "vanilla JS".

What I meant was inlining the jQuery calls to their equivalent JS snippets, removing the need for including a 80K library if you are not overly dependent on jQuery. It was also a tongue-in-cheek comment.

The point is doing the translation on the server.