How do I know if pre_javascript_output is being called for deferred?
This hook gets called twice now once for deferred and once non-deferred. No flag is sent to the hook though, so when I call addInlineJavascript with deferred = true it adds the javascript twice at the end of the page. How do I determine if the call is for deferred code or not so the double code doesn't happen?
Re: How do I know if pre_javascript_output is being called for deferred?
Reply #2 –
Thanks. I'll give it a look. You might think about passing the deferred variable along in the hook anyway given it is called twice under slightly different circumstances.