3 ms·
Also another nitpick: > View the source code It would be really nice if the source code in the browser (no, not the Github repo; how do I know the web server
by dheera 5y ago
Also another nitpick:
> View the source code
It would be really nice if the source code in the browser (no, not the Github repo; how do I know the web server served the same thing as the Github repo?) were displayed in a human-readable format with proper tabbing, comments if applicable, and not an obfuscated, minified form.
In fact if your goal isn't specifically obfuscation, it's not necessary to minify JS in general. Web servers do a good job gzipping stuff.
- ThePadawan 5y agoHm, we could have the best of both worlds if source maps (can already be served to browsers and are supported fine) could be proven authentic. I believe right now, I could use foo.min.js and serve you a cruddy foo.min.map.js to mislead you. If I served you the original sources foo.concat.js and a build script to go from foo.concat.js => foo.min.js instead, we could have both the speed of the minified version and the (proven by the browser) accurate source code and maps!
- ComputerGuru 5y agoWe’re moving far, far away from the observability and introspection that once made the web a transparent medium. First it was minified JS, then it was minified and obfuscated JS, then it was using a canvas instead of the DOM to prevent even HTML inspection, and now it’s binary executable payloads (WASM) rendering to a WebGL context with zero introspection possible.
- kenneth 5y agoIs there actually a popular site that uses WASM / WebGL the way you mention it?
- ayewo 5y agoIf you are willing to accept web sites (or rather web apps) that are popular among designers, then Figma is one notable example. https://www.figma.com/blog/webassembly-cut-figmas-load-time-by-3x/ https://www.figma.com/blog/webassembly-cut-figmas-load-time-...