Does anyone know if there are studies that show performance overhead when using javascript libraries (except for the obvious time to load them) and using only basic javascript? The libraries are so huge these days, and I was curious.
From my degree in computer science, it seems like it should have growth n. (in other words, linear).
In terms of computer science, this is not a threat, but how does it affect page load time and page performance in milliseconds? I know that the CPU is a problem, RAM, etc. But is there any test that can measure such things?
I know that there is another factor: libraries are often optimized to do the same thing that you would manually code in a less optimized way, but libraries also have overhead, and not all of these functions will be used.
Edit: I found that this seems to fully answer my question, even if it started about something else: When to use Vanilla JavaScript vs. jQuery?
"As comments quickly comment (and I agree 100%), the above statements relate to the benchmarking benchmark." A stand-alone JavaScript solution (provided it is well written) will be superior to a jQuery solution that does the same (I would like to see an example anyway). JQuery speeds up development time, which is a significant advantage that I don't mean for understatement.This simplifies reading, ease of use of code, which is more than some developers can create on their own.
In my opinion, then the answer depends on what you are trying to achieve. If, I believe, based on your reference to performance advantages, you are after the highest possible speed of your application, then using jQuery introduces overhead every time you call $ (). If you are going to read, consistency, cross-browser compatibility, etc., then there are certain reasons to support jQuery over native JavaScript.
Wolfe
source share