postcss / postcss.org

Official website for PostCSS
https://postcss.org
MIT License
81 stars 50 forks source link

Improve Performance #277

Open imchell opened 2 years ago

imchell commented 2 years ago

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?

ai commented 2 years ago

We will not have full text search in this case

imchell commented 2 years ago

Would some libs like Fuse.js be helpful?

ai commented 2 years ago

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

imchell commented 2 years ago

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.