I wish to load some javascript in the footer, but only if a certain condition is met. I was wondering what the best option might be for this?
For example, if an entry has some related entries further up the page, then add the javascript in the footer.
The reason being that i don't want to include the javascript on every page.