# Loading annotations without reloading webviewer

**URL:** <https://pdfjs.community/t/loading-annotations-without-reloading-webviewer/252>\
**Category:** Technical Support\
**Created:** [September 13, 2020, 1:33pm UTC](https://pdfjs.community/t/loading-annotations-without-reloading-webviewer/252 "2020-09-13T13:33:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivek.sonawane](https://avatars.discourse-cdn.com/v4/letter/v/e95f7d/32.png) [@vivek.sonawane](https://pdfjs.community/u/vivek.sonawane)\
**Post date:** [September 13, 2020, 1:33pm UTC](https://pdfjs.community/t/loading-annotations-without-reloading-webviewer/252/1 "2020-09-13T13:33:22Z")

</div>

I want to display Notes messages when i hover on a sticky icon. Whenever i post new message,i always need to reload webviewer to load annotations and display updated data on hover.  
Is there any way to reload annotations without reloading webviewer?

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [September 15, 2020, 2:29pm UTC](https://pdfjs.community/t/loading-annotations-without-reloading-webviewer/252/2 "2020-09-15T14:29:31Z")

</div>

Hi there,

The UI will update automatically when you create a new annotation/comment, so you should not have to reload.

If you are creating the annotations programatically, you can call [`annotManager.redrawAnnotation`](https://pdfjs.express/api/CoreControls.AnnotationManager.html#redrawAnnotation__anchor) to refresh the annotation.

If you are talking about loading annotations from a server that _other_ people create, there are a few strategies you could take. One is polling the server every X second for new annotations. If there are new ones, download them and use [`importXFDF`](https://pdfjs.express/api/CoreControls.AnnotationManager.html#importAnnotations__anchor) or [`importAnnotCommand`](https://pdfjs.express/api/CoreControls.AnnotationManager.html#importAnnotCommand__anchor) to load them on the fly.

You could also use websockets to enable realtime communication between your server and client, and then follow the same strategy as above.

Thanks,  
Logan
