Annotations loads before file loads even if we use 'documentLoaded' event

Hi ,
we have used event called ‘documentLoaded’ to load annotations after document loads in viewer. but sometimes viewer first shows annotations and then shows page content.
Is it issue related to performance of viewer that if we load large size pdf then it needs some time to render pdf on viewer but viewer fires documentLoaded event before page appears in viewer.

what is solution for this (if any). could you please provide information regarding this behavior of viewer.

Thank you

Hello,

You can try using the docViewer.pageComplete event to detect when the page is fully rendered, and then draw the annotations.

documentLoaded is called when the document is loaded in memory, not necessarily when it is rendered.

Logan