msiebuhr / charcod.es

Small webpage for finding the odd unicode char code.
https://charcodes.netlify.app/
ISC License
18 stars 3 forks source link

Inject the data as JavaScript instead of JSON #5

Closed msiebuhr closed 12 years ago

msiebuhr commented 12 years ago

There's really no reason to load the data as JSON, as it's quite static. Wrapping it into some JS should be fairly simple:

"var rawData = " + JSON data + ";"

And then include it in the HTML.

msiebuhr commented 12 years ago

Actually, don't. This will make the initial load-time quite long. We should rather show a friendly message if we're slow getting the JSON from the back-end.

And work towards making the JSON smaller.