Skip to content

Commit

Permalink
requirejs should be loaded in the header
Browse files Browse the repository at this point in the history
this fix #141
  • Loading branch information
alexisduque committed Jul 1, 2019
1 parent 5dfb744 commit 539fed1
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@

<script src="{{resources.base_url}}voila/static/jquery.min.js"></script>

<script
src="{{resources.base_url}}voila/static/require.min.js"
integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA="
crossorigin="anonymous">
</script>

<script id="jupyter-config-data" type="application/json">
{
"baseUrl": "{{resources.base_url}}",
Expand All @@ -33,11 +39,6 @@

{% block footer %}
{% block footer_js %}
<script
src="{{resources.base_url}}voila/static/require.min.js"
integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA="
crossorigin="anonymous">
</script>
<script>
requirejs.config({ baseUrl: '{{resources.base_url}}voila/', waitSeconds: 30})
requirejs(
Expand Down

0 comments on commit 539fed1

Please sign in to comment.