New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Best way to handle per-page javascript

Luigi Foscari January 19, 2021 by Luigi Foscari

Hi everyone, first time user, long time lurker. I have several pages, each need different javascript code. Is there a statamic-y way to handle this? Substantially I need to link each page template with a js source file.

I have yet to find a nice solution for this problem, any ideas? Thanks in advance.

Answered by Jaden Gregory!
>>>>>>> Answered <<<<<<<
6 Replies
3 Followers