postcss.org
postcss.org copied to clipboard
Improve Performance
section.doc
is an extemely large DOM. It affects rendering time and readability. Maybe we can truncate it by section and load it into different pages (maybe visibility controlled by JS instead of real pages) just like many other documents?
We will not have full text search in this case
Would some libs like Fuse.js be helpful?
But Fuse.js is not simple in-browser search which everone knows
Yes. But if the doc is going to be truncated and manipulated by JS, it's reasonable that the doc data can be used to implemented search function powered by Fuse.js.