Background:

Flaky cypress test that fail and it complains:

1
"Uncaught ReferenceError: System is not defined"

system.js is included to the project from index.html:

https://www.angelfire.com/pq/jamesbarbetti/articles/javascript/001_AvoidingRaceConditions.htm

https://eager.io/blog/everything-I-know-about-the-script-tag/

https://javascript.info/onload-ondomcontentloaded#domcontentloaded