Hello! This has been driving me slightly insane since yesterday.
I have an abstract class that a lot of data classes implement. When one of these data classes is used, it sometimes throws a reference error as the import of the abstract class does not finish in time. I think this is caused by it being used for extensions, which is in the definition of the implemented class, so even if the imports are deferred and execution will not being until the page has finished parsing, the fact the abstract class is referenced and used when defining the implemented classes it seemingly will cause this issue with some regularity.
So far I've tried to put a pre-loader in the <head> of the page which I also made awaiting the import of this specific abstract class before importing other stuff. This has made the issue show up less often, but it still happens, more often on low performance systems, which is why I noticed it at all as I was working on my project on my cheap laptop over the weekend.
Is this an issue with JavaScript itself, that it doesn't handle abstract imports properly, does anyone recognize this?