My JS is ugly ...
dalecosp 2200+ lines? I am confusion
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.
NogDog adding a lot of classes HTML classes that is and cookies too I guess? ClassList
to make sure I wasn't choking. maxxd
You keep that lady around, now, y'hear? #ThatsGold
I am in confusion.
Multiple files already. One has photo functions, one has table functions ... (eek!), one operates the AJAX stuff, one is more general to that page. But the 2200+ doesn't include the stuff that we use on ALL pages either, so technically there's more than that loading into the browser ....
[upl-image-preview url=https://board.phpbuilder.com/assets/files/2019-10-09/1570657009-774331-img-20191009-163509692.jpeg]
That reminds me.
There are 2 hard problems in computer science: cache invalidation, naming things, and off-by-1 errors. And scope creep.
- Edited
I guess I need to add that last one to the list ... although maybe I shouldn't lest some PHB comes by and thinks it's a good idea ....
maxxd for some reason I always pictured you as being in your mid 20's, now I question reality
cluelessPHP hey, they could have become neighbours when they were twelve!
laserlight I didn't take you for the romantic type, it's a crazy world crazy I say
cluelessPHP That is very, very kind - add 20 to it and you're there.