It’s hard to say for sure without being able to see your theme code. But we have seen this before if you have <script> in your theme which is then loading Discourse code via require().
If you change it to <script type="text/discourse-plugin" version="0.8">, then it will load slightly later, and should not have the dt7948 problem.