Minify index.html and tis.min.js
nineteendo opened this issue · comments
I got your code down to 4016 bytes (and html to 1024 bytes): tis-master.zip
Tutorial:
- index.html:
- remove
<!DOCTYPE html>
- kangax (default)
- replace
http://
withhttps://
- replace
tis.js
withtis.min.js
- replace
en.wikipedia.org
withwikipedia.org
- first javascript:
- replace
function(t,e,s)
withfunction(t)
- replace
- second javascript:
- digitalocean (mangle: toplevel)
- remove
- tis.min.js:
- toptal
- digitalocean (compress, mangle)
- replace
http://
withhttps://
- remove last
;
Apparently minifiers have improved over the past 10 years :)
Fwiw, the 4 kiB limit only applies to tis.min.js (which is self-sufficient), not the HTML (which can be any page).
Would a pull request be easier? If you want I can keep the unminified html as a separate file, but with https, the minified javascript and wikipedia.org: index-source.html.zip
No need, thanks. I wrote this 10 years ago for fun, and I'm not maintaining it anymore.
Your spreadsheet is very cool! At 4 kiB, Tis is actually one of the bigger ones, but then again it's also pretty rich in features.
Your program definitely has a lot of features, 26 (or 30 if you count features of the browser):
My main problem is that the language I've written it in is compact, but extremely slow. Which makes most of the remaining features not possible, except for "bags-of-seven", which sounds fun to implement for the 1.5 KB version.