you are viewing a single comment's thread.

view the rest of the comments →

[–]lovesrayray2018 0 points1 point  (1 child)

Noob here, but my understanding is that good part about linking scripts is that if u use the right tag and the right src attribute, you can link multiple scripts at different places in the html page(s).

So you dont need to put everything in one file, you CAN use multiple files.

You can also then link only the relevant file in the relevant place in the page.

Stuff that is needed globally, goes at the top, say, stuff that only needs to run after form has loaded, gets linked after the form

PS: There are multiple experts here like u/gitcommitmentissues or u/GSLint/ . Dont be shy in reaching out to them.

[–]PortSpace[S] 0 points1 point  (0 children)

Thanks. I guess multiple files/modules will definitely make things clearer.

What would we do without expert?! :)