New Web Dev here.
Recently I got into DOM manipulation with JS, everything was sweet with one-page websites, but then I tried with projects with many html files and that's when I got confused.
It's a static website, each page has different elements so my first thought was "Ok so, one JS file per page, right?" And I think that's fine for a 2-3pages websites, but what if it is a medium size one? I mean 10-15 pages (home, login, profile page, settings, a gallery page with a carousel, etc). The browser would make so many requests.
So here are my questions:
What do they mean by 'merging' scripts?
Is there a tool for that? How does it work?
What do you do guys in these cases?
Thanks in advance!