I have a website, mostly made with Bootstrap and certain not so powerful PCs (I saw a Core 2 Duo with 4gb of RAM) as an example, my web experiences some "latency" when clicking on form elements like inputs, buttons, selects and the css animations of these are done in slow motion.
Nothing ago I discovered by accident that something like this:
$("div").on("click", "input, select, button", function(e){
e.stopPropagation();
});
Towards wonders with the experience of these teams on the page, making these actions and their animations much more fluid (as it should be).
The question in question then is, as I have only used
e.stopPropagation();
to make the clicks of some elements do not run more than once in the past, I really have no idea why this happens and except for some elements that do not work normally and I will have to adjust, with that code the web it becomes much more enjoyable for less powerful PCs.
This can bring some problem that I'm not seeing?