I have implemented the pdfviewer inside a side panel (dialog) and i noticed a considerable slowing in my component when i open the pdfviewer. i used the unload and destroy methods of the pdfviewer inside my ngOnDestory of the dialog but i feel it does not do the job (clean up), and i got this error.
but when i use a function thats call the pdfviewer.destroy() before closing my component it work (it close the pdfviewer), but the performance still the same.
any suggestions, Thanks.
Azeddine.
its very complexe to create a simple cause i use a list of document like below
the X open the pdfviewer with the document
i use a side panel to show the pdfviewer. the side panel uses a dynamic component style to charge the component of the pdfviewer. the application work fine before i open the pdfviewer, but after i open it and close it (do nothing just open it and close it) i feel the lag of scrolling im my page and the down of performance in general. i feel like it does not clean the data and the load of the pdfviewer after closing it. here is my memory profiler when i open the pdfviewer
and after i close it
the number of DOM nodes is huge i guess thats the problem of the lag in scroll and performance.
how can i destroy all pdfviewer ressources after closing it ? (for information i use the destroy method and i think it does not so the job)
Thanks.