Searching for a way to add this code, after the <head>
(or some <link stylesheet>
) and before <body>
is generated (created).
$('body').append('<style type="text/css">\
// some
// multiline
// styles
</style>');
There is no <body>
without domready()
, so its seems better to use head
instead or something else. Append
also can be replaced.
There is no direct access for html file edit, thats why I'm using javascript.
Why is it needed? When we use domready()
script adds styles after the page is generated, so blocks with new styles jumps from previous decoration to new - not good, thats why we should use another hook.
Anybody knows how to do that?
Thanks.