Skip to content
Snippets Groups Projects
Commit 0e2a804d authored by Eliott Sammier's avatar Eliott Sammier
Browse files

Deferred scripts loading

parent e295663d
Branches
No related tags found
No related merge requests found
......@@ -7,13 +7,15 @@
{{/* if a quiz.json exists in the page resources, load SurveyJS */}}
{{ with .Resources.GetMatch "quiz.json" }}
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script defer type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link href="https://unpkg.com/survey-jquery/defaultV2.min.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="/survey.jquery.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/survey-core/themes/default-light-panelless.min.js"></script>
<script defer type="text/javascript" src="/survey.jquery.min.js"></script>
<script defer type="text/javascript"
src="https://unpkg.com/survey-core/themes/default-light-panelless.min.js"></script>
{{- $quizjs := resources.Get "quiz.js" -}}
<script type="text/javascript" src="{{- $quizjs.RelPermalink -}}"> </script>
<script defer type="text/javascript" src="{{- $quizjs.RelPermalink -}}"></script>
{{ end }}
{{ end }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment