Rigidity and performance
When we are working on a library or programming language, we should pay attention to some writing rules. Thanks to jQuery, they have already implemented many options. You can use $ , or you can use jQuery , or you can use _
(function (_) { _("#wow").click() })(jQuery);
Or maybe you can pretend javascript identifiers are unicode, so you can use Ω
(function (Ω) { Ω("#wow").click() })(jQuery);
But the main idea of this, pressing the keyboard once is better than typing jQuery
On the other hand, we have performance ... I just accidentally opened my project and looked for $ , I used $ 54 in a single javascript file.
$ is a byte.
jQuery - 6 bytes.
The difference is huge 54 * 5 = 220 bytes.
Ahmet Can Güven Feb 23 '16 at 16:22 2016-02-23 16:22
source share