Post by account_disabled on Feb 27, 2024 4:51:24 GMT
The could not and above all should not be used. Why we chose to remove JQuery Too heavy It really weighs a lot in the final Javascript bundle and we had to make these files as small as possible the weight of the files that the browser must download is one of the most important factors for the speed of site loading. much a dependency affects the size of the final Javascript file is Bundlephobia . JQuery weighs a good kB Gzipped and Minified. So by using it we would have already started from kB without having written even a single line of our code it was not acceptable.
Our javascript file at that time the only Javascript file weighed KiB Minified and KiB Minified Iran Mobile Number List Gzipped However the site was only at . Unused Lets be clear many times we use the same JQuery functions for manipulating the Dom but to use them we have to import all of JQuery. We could personally write those few functions that we are going to use as in our case see code to reduce the weight to just . KB not minified. Not scalable enough In our case the site would have had to implement various functions of varying complexity. It was essential therefore that our code was scalable and above all maintainable.
We needed to create components that had their own logic and were reusable in multiple parts of the site. JQuery allows you to make changes to the DOM manage the style of elements and much more but as the complexity of the application grows it risks becoming a sword of Damocles. JQuery therefore could not be the right solution for us. Bootstrap Native Bootstrap JQuery and Bootstrap love each other perhaps too much. Boostrap in its classic version needs JQuery as well as other dependencies to make.
Our javascript file at that time the only Javascript file weighed KiB Minified and KiB Minified Iran Mobile Number List Gzipped However the site was only at . Unused Lets be clear many times we use the same JQuery functions for manipulating the Dom but to use them we have to import all of JQuery. We could personally write those few functions that we are going to use as in our case see code to reduce the weight to just . KB not minified. Not scalable enough In our case the site would have had to implement various functions of varying complexity. It was essential therefore that our code was scalable and above all maintainable.
We needed to create components that had their own logic and were reusable in multiple parts of the site. JQuery allows you to make changes to the DOM manage the style of elements and much more but as the complexity of the application grows it risks becoming a sword of Damocles. JQuery therefore could not be the right solution for us. Bootstrap Native Bootstrap JQuery and Bootstrap love each other perhaps too much. Boostrap in its classic version needs JQuery as well as other dependencies to make.