Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: Perl script compressor

by stevieb (Canon)
on Dec 08, 2019 at 23:12 UTC ( #11109860=note: print w/replies, xml ) Need Help??


in reply to Re^3: Perl script compressor
in thread Perl script compressor

That's mostly because JS is downloaded by the client on each request, so there's real network savings by minimizing the amount of data coming across the wire.

That's a much different reason than simply reading a server-side script directly from disk.

Replies are listed 'Best First'.
Re^5: Perl script compressor
by marto (Archbishop) on Dec 09, 2019 at 03:26 UTC

    "That's mostly because JS is downloaded by the client on each request"

    You may want to switch on your browsers developer tools, head to the network tab and observe exactly the opposite, the browser not download the same JS file on each request.

Re^5: Perl script compressor
by karlgoethebier (Monsignor) on Dec 09, 2019 at 11:18 UTC

    If you don‘t believe what marto said make this experiment: Install some http debugging proxy like fiddler. Go to some website that uses JS (almost every today) and examine the traffic. You will understand why some web developers sometimes behave strange. Regards, Karl

    «The Crux of the Biscuit is the Apostrophe»

    perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11109860]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2020-07-06 20:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?