Skip to content

Commit

Permalink
Move iframe-render script earlier to run it as fast as possible
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladyslav Tymofeiev committed Aug 27, 2024
1 parent c50e42b commit 4b24845
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lms/templates/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
</title>
</%block>

<script async type="text/javascript" src="${static.url("lms/js/iframe-render.js")}"></script>

% if not allow_iframing:
<script type="text/javascript">
/* immediately break out of an iframe if coming from the marketing website */
Expand Down Expand Up @@ -126,7 +128,6 @@
}).call(this, require || RequireJS.require);
</script>
<script type="text/javascript" src="${static.url("lms/js/require-config.js")}"></script>
<script type="text/javascript" src="${static.url("lms/js/iframe-render.js")}"></script>
<%block name="js_overrides">
${render_require_js_path_overrides(settings.REQUIRE_JS_PATH_OVERRIDES) | n, decode.utf8}
</%block>
Expand Down

0 comments on commit 4b24845

Please sign in to comment.