konklone/json — pull request #52 by konklone (2014-12-23 22:57:27+00:00)
Title: Disable color highlighting on large json files, and remove csvkit link

The syntax highlighting code isn't worth it for large JSON files. Disabling it above a certain threshold makes the site work for larger files, even if it won't ever be able to handle super super large files.

This disables syntax highlighting for JSON blobs above 50KB. It also removes the top link to [`csvkit`](http://csvkit.readthedocs.org/en/0.9.0/), since the recursive flattening support in `csvkit` [seems to have regressed](https://github.com/onyxfish/csvkit/issues/366#issuecomment-68005428) (or something).

What it looks like for a large file now:

![large file](https://cloud.githubusercontent.com/assets/4592/5544071/264bf672-8acd-11e4-8715-25f6df73c5dc.png)

Examples:

* 24KB JSON blob: http://konklone.io/json/?id=026996ae8641df750c71
* 400KB JSON blob: http://konklone.io/json/?id=300bf93cfa21d7d7bfce

Fixes #44.