Forum > Networking and Web Programming

pas2js compress or minify js file

(1/2) > >>

Prakash:
how to compress or minify JavaScript in pas2js

Thaddy:
strip whitespace and lineendings. Normally this is not necessary.
It is so easy to do that I am not even prepared to write you an example.

domasz:

--- Quote from: Prakash on November 27, 2022, 04:14:10 pm ---how to compress or minify JavaScript in pas2js

--- End quote ---
If you want to use it on a webserver then make sure the server is gzipping JS code on the fly or pre-gzip the code and make sure the HTTP headers are set correctly for it.

Prakash:
code is visible to customer . We want to do the obfuscated javascript code .

we don't want to share the business logic or  any source code to anyone

Thaddy:
Obfuscation is the worst kind of security. (none)
Anyway, for the dumb customer you can use Base64. But dumb programmers.....
No examples given because of sheer stupidity.

Although there should be some examples by others and me that may help you.
Or is the search button also obfuscated? :-X

Anyway, better than wasm it won't get.

Navigation

[0] Message Index

[#] Next page

Go to full version