I have one SPA page where I have a canvas for users to draw and manipulate graphics. This is only required on one page but it does require quite a few links to locally stored javascript files.
So naturally I thought I could simply add this to the SPA page
Thanks for confirming that @ben. I know the parent is only loaded once which is a great benefit but my mind still likes small neat packages kept together.
For the sake of neatness, and managing files, would it be good practice to put the files in question into a separate php file and include that file in the parent? That way I know all the files for this particular function are ‘contained’ together? Or am I being silly? Or is there another way?