Skip to content

Commit 4b24845

Browse files
author
Vladyslav Tymofeiev
committed
Move iframe-render script earlier to run it as fast as possible
1 parent c50e42b commit 4b24845

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lms/templates/main.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
</title>
4949
</%block>
5050

51+
<script async type="text/javascript" src="${static.url("lms/js/iframe-render.js")}"></script>
52+
5153
% if not allow_iframing:
5254
<script type="text/javascript">
5355
/* immediately break out of an iframe if coming from the marketing website */
@@ -126,7 +128,6 @@
126128
}).call(this, require || RequireJS.require);
127129
</script>
128130
<script type="text/javascript" src="${static.url("lms/js/require-config.js")}"></script>
129-
<script type="text/javascript" src="${static.url("lms/js/iframe-render.js")}"></script>
130131
<%block name="js_overrides">
131132
${render_require_js_path_overrides(settings.REQUIRE_JS_PATH_OVERRIDES) | n, decode.utf8}
132133
</%block>

0 commit comments

Comments
 (0)