I have a basic extension that contains 3 input fields. When I type at most bottom (the third) input - its content text is updated super slow (after a few seconds / after I focus out of the input).
I wanted to measure the extension's performance to understand the root cause of the issue using Chrome devtools, so I clicked on Inspect Popup, opened the Performance tab, and clicked on start profiling (the grey circle button on the top left). Then the magic happened -> as long as the session was recorded all the inputs started to work super fast! when I stopped the profiling, the problematic input started to react slowly again.
Why when I record and profile the extension it works faster? Is there a configuration that changes using the profiling time?
####popup.html#### <!DOCTYPE html> <html><head> <meta charset="utf-8" /> </head> <body> <div id="app"></div> <input> <input> <input> </body> </html>
manifest.json { "name": "NAME", "version": "0.0.0", "manifest_version": 2, "key": ..., "content_security_policy": "script-src 'self' https://unpkg.com; object-src 'self'", "icons": { "128": "images/icon-128.png" }, "background": { "page": "background.html" }, "browser_action": { "default_icon": "images/icon-128.png", "default_title": "Title", "default_popup": "popup.html" } }
background.html <!DOCTYPE html> <html> <head> <!-- <script type="module" src="background.bundle.js"></script> --> </head> <body></body> </html>
have some extra webpack conf files but don't think they are relevant. The rest of the code is commented out as I'm trying to understand the behavior of the input.