javascript – JS / jQuery in Elementor pages vs JS file

Question

I have a lot of JavaScript and jQuery functions that are all working fine, but it’s quite fragmented and hard to maintain as some are in Elementor HTML widgets, others in specific Pho functions annd some in an enqueued JS file.

Ideally I’d like to move everything into the single JS file so it’s easier to maintain, but would there be any performance implications? For example some scripts only need to run on specific pages but I assume they would load everywhere in a file. Would this have any realistic performance implications or am I being overly obsessive…?

0
user2894986 2 months 2022-05-05T02:48:02-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse