The modern debugging template also loads jQuery, which breaks any pages which use jquery and plugins.
Any jquery plugins used by the page are loaded into the first jquery instance, then the debugging template loads a second jquery instance which doesn't have the plugins and any use of the plugins then throws an exception.
jQuery has a no conflict option to avoid this problem.
attached is a simple demo script, if you run it with out debugging enabled it runs fine.
if you run it with the modern debugging template enabled, you will see the following error in the console
i have completely rewritten the debug template. now the template does not load any resource at all.
UNLESS i click on the tab “Metrics“ or “Reference“, so it only loads addional resources in case i interact with it
please test with differenz browsers and report the result here
but I can't see the line numbers for the query debug...
I've checked with your commit in Mozilla, chrome, edge, safari. It work's fine for LDEV-2254.
But some errors happen if we changing the modern template to a classic template in an admin when there is only a modern template is available.
Please look into
fixed (we used an older template to integrate)