cluelessPHP 2200+ lines? I am confusion
Maybe a use case for a JavaScript "bundler" like Parcel? As I understand it (have not used it), you could then separate your code into multiple files (like you would in PHP for classes and maybe groups of related functions) as opposed to one big procedural file?
Or not.