I ended up just rewriting the two javascript files I had as Stimulus Controllers, which seem to have circumvented the problem.
I ended up just rewriting the two javascript files I had as Stimulus Controllers, which seem to have circumvented the problem.