updating 500-embed to load after page is fully loaded, #5733

v1.18.x
Julian Lam 7 years ago
parent 26d4c18340
commit a6b993ef6c

@ -1,4 +1,5 @@
<script> <script>
window.addEventListener('load', function () {
define('/assets/templates/500.jst', function () { define('/assets/templates/500.jst', function () {
function compiled(helpers, context, get, iter, helper) { function compiled(helpers, context, get, iter, helper) {
return '<div class="alert alert-danger">\n\t<strong>[[global:500.title]]</strong>\n\t<p>[[global:500.message]]</p>\n\t<p>' + return '<div class="alert alert-danger">\n\t<strong>[[global:500.title]]</strong>\n\t<p>[[global:500.message]]</p>\n\t<p>' +
@ -9,4 +10,5 @@ define('/assets/templates/500.jst', function () {
return compiled; return compiled;
}); });
});
</script> </script>
Loading…
Cancel
Save