webkit.js
webkit.js copied to clipboard
Optimization of code size, remove large amounts of dead code linker can't kill
Specifically:
- Most of the loader / platform code can be killed. ( ??)
- Backtiling? This is somewhat unnecessary. (est savings 800KB)
- WTF cleanup (est savings 0.8MB)
- Remove curl all together and use lightweight callbacks to XHR and http node module? (est savings 0.4MB)
- Reduce freetype to only LCD 'light' renderer, not all of them. (est savings 0.3MB)
- Package fonts more efficiently than gigantic 0-255 Uint8 array? (est savings 0.8MB)
- Linker optimizations LTO? ( ?? )
- Use a closure compiler / minimizer as post build action (est savings 2-3 MB)
This should take it down from ~21MB to ~15MB uncompressed (~3MB Gzipped by server)