/    Sign up×
Community /Pin to ProfileBookmark

One JS file or a few?

I built a website nd I’m using a .js file for all the script in the website. There’s about 12 scripts in the JS file and I would like to know if maybe I should cut the JS file to a few files. Is that better or it doesn’t matter at all…

Thanks!

to post a comment
Full-stack Developer

2 Comments(s)

Copy linkTweet thisAlerts:
@PeOfEoJan 24.2005 — I would just keep the one. Why import 12 files at the top of the page.
Copy linkTweet thisAlerts:
@weeeauthorJan 24.2005 — I'm using only two scripts for each page. Sometimes even one...
×

Success!

Help @weee spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...