In our SPA application, built with AngularJS 1.5, customers can view structured text documents. Often they are large like 25000 DOM nodes or so. Document structure can hardly be reduced.
When we try to bind such heavy document (HTML) to the view it freezes for a while. Users also see some performance problems in the browser while working with the document text as the application has lots of functionalities for this. We have to provide the entire documents to our users because they want to work with the whole content at the same time. We are also not allowed to drop any of functionalities. Except performance, UX is fine now.
We think it will help if we build something like a virtual scroll, where only visible part of the document will be in the DOM. Another thing to consider is rewriting this particular view (document view) with another framework / library. AJS 2.x is on the horizon. We have also React, Vue.js and ..?
Do you have any other ideas? Do you have some experience with large documents and frameworks like AngularJS? Will AJS 2.x be better than AJS 1.x or React or something else?
Aucun commentaire:
Enregistrer un commentaire