I would like to if anyone has observed this. If i don't use cache the scripts are located in the header but if i enable the cache the scripts are located inside the body. I need them to be located on the header.
I have already set the Requirements::set_write_js_to_body(false);
If you put scripttags like <script>... directly in the templates, SS adds the rest of the scripts Requirements underneath the first scripttag. AFAIK it does not make a difference, if you add Requirements per php or per <% require ... %>.