Improve script url encoding #312

Merged
Irev-Dev merged 2 commits from kurt/improve-script-url-encoding-311 into main 2021-05-08 01:15:49 +02:00

2 Commits

Author SHA1 Message Date
Kurt Hutten
7749a14da3 All apostrophes in jsx 2021-05-08 09:09:07 +10:00
Kurt Hutten
053b1d642c Improve script URL ecoding
added some magic to get scripts to efficiently encoded into the URL.
We're using pako to compress the script, but this outputs to a 8bit
array. Stringifying this array adds a lot of overhead, because "125"
has three characters in it.
Instead we're using the character codes to turn these a bit numbers
into single characters base64 is used as well because not all of the
characters are allowed in a url (and b64 is better than
encodeURIComponent).
2021-05-08 09:07:54 +10:00