Enqueue javascript files


(Williamssp4) #1

Hi,

 

We currently have most javascript files loaded in the footer of our docs, including jQuery. 

 

We need to be able to load extra scripts on a per-page basis that load AFTER jQuery and the rest.

 

What would be the recommended way to do this?

 

Cheers

 

Stef


(Nic Hubbard) #2

If you want to do it per-page I would think the easiest way would be to have a metadata design area below jQuery, then you can add the script tags on a page-by-page basis.


(Alderman) #3

Thanks Nic - we'll give that a go.


#4

Yep we do it that way as well :slight_smile: