Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

BUG

64 views
Skip to first unread message

Iggota Bonner

unread,
Jan 12, 2025, 10:08:45 AMJan 12
to Chromium Extensions
Hi guys. I recently noticed a glitch with my published extension "tword notes".
When opening for a split second the size of the input fields is too big, as if the css is not applied, and also a slider for scrolling appears, then everything falls into place and the slider disappears.
I opened my package locally and there are no such problems.
2025-01-10 15-01-03.mp4

woxxom

unread,
Jan 12, 2025, 9:25:41 PMJan 12
to Chromium Extensions, Iggota Bonner
I can't reproduce the problem, so it may be caused by an experiment that is enabled for random installations of Chrome, something similar to the old one for HTML parser yielding that inserted a GPU paint frame every 50 tags or so. That particular experiment was disabled for local files and extensions, so maybe now there's something else, but try this workaround anyway: "hide" the html inside a <template> tag in <head> + load the main script in <body> + add the contents of the template explicitly.

<head>
<template>
.........the entire contents of the current body
</template>
<head>
<body>
<script src=script.js></script>
</body>

script.js:

document.body.appendChild(document.querySelector('template').content);
.........................

woxxom

unread,
Jan 12, 2025, 9:28:55 PMJan 12
to Chromium Extensions, woxxom, Iggota Bonner
fwiw, the second <head> should be </head>
Reply all
Reply to author
Forward
0 new messages