In my layout, I'm calling include_javascripts()
in my <head></head>
section. Later on in my layout, I'm calling a component which makes use of use_javascript()
, but, unfortunately, the javascript has been output, so this request falls on deaf ears.
I can think of a few approaches:
- Put the call to `include_javascripts()` at the bottom.
At the moment I can't do this, because I'm using a CMS on top of symfony which uses a lot of inline javascript. - Override the include_javascript helper, or create a new one, which adds doesn't add anything, but adds it adds to a queue that a filter will take care of after rendering the page.
This is sort of like the common filter which was removed from 1.2. Obviously, they don't seem to like this approach.
Are there any other alternatives?