I just checked the dependencies, in particular one load statement that, when I removed it, made the CPU load go back to normal (it points to a lot of other files). There aren’t any circular references in there. I organised the files in layers to make it pretty clear where each ones falls in the hierarchy.
The other reason to suspect a problem with the handling of the files is that, if I just leave out the five .js files at the top of the tree (the ones containing the triggers), the CPU behaves normally. The files load with almost the entire dependency tree with no problem. If there were a circular dependency, this would not be the case. The top-level files can’t introduce a circular dependency because there’s nothing above them.
OK I’ll have a look at it.
My system has been running happily for four and a half hours .