NeXTs / Clusterize.js

Tiny vanilla JS plugin to display large data sets easily
https://clusterize.js.org
MIT License
7.22k stars 412 forks source link

Data from Markup #15

Closed ibnesayeed closed 9 years ago

ibnesayeed commented 9 years ago

It will be nice to allow data to be populated from existing markup. Say, there is a table with a lot of rows in the markup. Grab the data from the markup and remove it from the DOM tree. Clustrize that table and allow it to render. The page may feel a little slow until it is clustrized, but from there it will be performant again. This will provide a graceful degradation in unsupported browsers/clients. Also, the page will be easy to archive and index in search engines.

NeXTs commented 9 years ago

I like this idea. Will be implemented shortly.

ibnesayeed commented 9 years ago

That was quick! You are awesome. :)

I was also thinking if there will be a good use case where data is fetched from one place in the markup and clusterize somewhere else (or multiple places), but I don't see a compelling use case just yet, so in-place clusterization is good enough for now.