HTML5 fullscreen

I’ve been doing some testing with my games and noticed laggy frames when switching to HTML5 fullscreen. The lag also persists for a few seconds after exiting fullscreen and then everything seems to return to normal.

I did a quick almost empty example here:
https://infuscy.github.io/DefoldExport/

I also tested in Unity as I thought it might be because of hardware specs/browser:
https://infuscy.github.io/export/

What might be the cause and what could I do to fix this?

Fuscy

hmm, I have no lags in defold version.
checked on macOs in Safari, Chrome and Firefox browser.
(In Safari unity full screen doesn’t work at all)