This is pre-request work to introduce a splash screen while site assets load. The only change this commit introduces is that it ensures we add the defer attribute to core/plugin/theme .JS files. This will allow us to insert markup before the browser starts evaluating those scripts later on. It has no visual or functional impact on core. This will not have any impact on how themes and plugins work. The only exception is themes loading external scripts in the </head> theme field directly via script tags. Everything will work the same but those would need to add the defer attribute if they want to keep the benefits introduced in this PR.
69 lines
2.2 KiB
HTML
69 lines
2.2 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<title>Discourse Tests</title>
|
|
<meta name="description" content="">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta property="og:title" content="Discourse Tests">
|
|
<meta property="og:url" content="{{rootURL}}">
|
|
|
|
{{content-for "head"}}
|
|
{{content-for "test-head"}}
|
|
|
|
<link rel="stylesheet" href="{{rootURL}}assets/vendor.css">
|
|
<link rel="stylesheet" href="{{rootURL}}assets/test-support.css">
|
|
<link rel="stylesheet" href="{{rootURL}}assets/testem.css">
|
|
|
|
{{content-for "head-footer"}}
|
|
{{content-for "test-head-footer"}}
|
|
|
|
<style>
|
|
#ember-testing * {
|
|
-webkit-transition: none !important;
|
|
-moz-transition: none !important;
|
|
-o-transition: none !important;
|
|
transition: none !important;
|
|
}
|
|
#ember-testing {
|
|
background-color: white;
|
|
}
|
|
#qunit-fixture {
|
|
position: absolute;
|
|
top: -10000px;
|
|
left: -10000px;
|
|
width: 1000px;
|
|
height: 1000px;
|
|
}
|
|
</style>
|
|
|
|
<script src="{{rootURL}}assets/test-i18n.js"></script>
|
|
</head>
|
|
<body>
|
|
{{content-for "body"}}
|
|
{{content-for "test-body"}}
|
|
|
|
<script src="/testem.js" integrity=""></script>
|
|
<script src="{{rootURL}}assets/vendor.js"></script>
|
|
<ember-auto-import-scripts entrypoint="app"></ember-auto-import-scripts>
|
|
<script src="{{rootURL}}assets/test-support.js"></script>
|
|
<ember-auto-import-scripts entrypoint="tests"></ember-auto-import-scripts>
|
|
<script src="{{rootURL}}assets/discourse.js"></script>
|
|
<script src="{{rootURL}}assets/discourse-markdown.js"></script>
|
|
<script src="{{rootURL}}assets/admin.js"></script>
|
|
<script src="{{rootURL}}assets/wizard.js"></script>
|
|
{{content-for "test-plugin-js"}}
|
|
<script src="{{rootURL}}assets/test-helpers.js"></script>
|
|
<script src="{{rootURL}}assets/core-tests.js"></script>
|
|
{{content-for "test-plugin-tests-js"}}
|
|
<script>
|
|
require('discourse/tests/test-boot-ember-cli');
|
|
</script>
|
|
<script src="{{rootURL}}assets/scripts/discourse-boot.js"></script>
|
|
|
|
{{content-for "body-footer"}}
|
|
{{content-for "test-body-footer"}}
|
|
</body>
|
|
</html>
|