-
Hi! I have snippet inside When I run AJAX request which redraws this snippet, after receiving data back into the page, NAJA removes this snippet from Is there any way how to make it stay on the original place in the code? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello, how does your template with the snippets look? Snippets need a wrapping element – by default it's a |
Beta Was this translation helpful? Give feedback.
Hello, how does your template with the snippets look? Snippets need a wrapping element – by default it's a
<div>
which is not supposed to go into<head>
and I suspect browsers deal with it by moving it to<body>
. There's not much Naja can do about it, sorry. Since there is no block wrapper element that is allowed inside the<head>
, the only option I can think of is to mark the whole<head>
as a snippet.