Error? on responsive menu

I have the following issue: when configuring notifications in the menu to update at any time interval (for example, every 10,000 ms), I notice that each time the notifications are refreshed, the onApplicationInit event and the onLoad event are both executed twice. This causes unnecessary load on the database, especially if we have dynamic menus or any other code running during those events.

image
Result when notifications are enabled:
image