postcss.org icon indicating copy to clipboard operation
postcss.org copied to clipboard

Improve Performance

Open cyanxiao opened this issue 2 years ago • 4 comments

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?

cyanxiao avatar May 07 '22 09:05 cyanxiao

We will not have full text search in this case

ai avatar May 07 '22 10:05 ai

Would some libs like Fuse.js be helpful?

cyanxiao avatar May 07 '22 11:05 cyanxiao

But Fuse.js is not simple in-browser search which everone knows

ai avatar May 07 '22 11:05 ai

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.

cyanxiao avatar May 07 '22 11:05 cyanxiao