@grishka try document.addEventListener ("DOMContentLoaded", loaded).
@savely that's the same as without "run-at", it would run after the body has already been parsed and some scripts ran
@savely that's the same as without "run-at", it would run after the body has already been parsed and some scripts ran