Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is javascript written in width [duplicate]

Tags:

javascript

Why do programmers write javascript like this?

function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return....

Not like that

function(e) {
    function n(r) {
        if (t[r]) return t[r].exports;
        var o = t[r] = {
            i: r,
            l: !1,
            exports: {}
        };
        return```
like image 490
Notme Avatar asked May 01 '26 20:05

Notme


2 Answers

The programmer didn't write like that. They have used minification tools to improve the performance of their app. So the less load will be put on browser

like image 153
Sunil Choudhary Avatar answered May 03 '26 08:05

Sunil Choudhary


it's a minified version of js if you want to view unminify code you can use this online tool https://www.unminify2.com/

also, you can see the benefit of minified js on this Does minified javascript improve performance?

like image 39
Abdul Moiz Avatar answered May 03 '26 09:05

Abdul Moiz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!