pas2js compress or minify js file lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- Packs · 2022-11-27 15:14 how to compress or minify JavaScript in pas2js ---------------------------------------------------------------------- Thaddy · 2022-11-27 15:57 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 · 2022-11-27 16:22 Quote from: Prakash on November 27, 2022, 04:14:10 pmhow to compress or minify JavaScript in pas2js 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. ---------------------------------------------------------------------- Packs · 2022-11-27 16:42 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 · 2022-11-27 16:56 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? Anyway, better than wasm it won't get. ---------------------------------------------------------------------- korba812 · 2022-11-27 17:24 Quote from: Prakash on November 27, 2022, 05:42:16 pmwe don't want to share the business logic or  any source code to anyone Keep business logic on server side. ---------------------------------------------------------------------- Thaddy · 2022-11-27 17:47 Correct. ---------------------------------------------------------------------- PierceNg · 2022-11-28 02:20 Quote from: Prakash on November 27, 2022, 04:14:10 pmhow to compress or minify JavaScript in pas2js The friendly wiki has a page for this.