There are 2 widgets on the page, they are designed as independent components and you don’t want to communicate directly between them. I decided to try to use the mechanism of communication through events. But I ran into the problem that, for example, a string of 1 million characters was not transmitted by an event in the edge (there is simply nothing in the details event), but everything is fine in Mozille.
Events are created through the CustomEvent interface:
var event = new CustomEvent(type, { 'detail': data }); element.dispatchEvent(event); The question is, how much data can we safely transmit to detail events? It is safely meant so that the data in the event reached the addressee.