Skip to content

Commit

Permalink
Move deferred javascript assets
Browse files Browse the repository at this point in the history
(cherry picked from commit ea75b8ce91ddae6420592d2de3081fc461d96a00)
  • Loading branch information
gizmecano committed Feb 11, 2020
1 parent f7fd4cd commit b2812e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions templates/partials/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,5 @@
{% endblock %}

{% include 'partials/javascripts.html.twig' %}
{% block bottom %}
{{ assets.js()|raw }}
{{ assets.js('bottom')|raw }}
{% endblock %}
</body>
</html>
4 changes: 4 additions & 0 deletions templates/partials/javascripts.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
{% do assets.addJs('theme://js/jquery.fitvids.js') %}
{% do assets.addJs('theme://js/index.js') %}
{% do assets.addJs('theme://js/readingTime.min.js') %}
{% block bottom %}
{{ assets.js()|raw }}
{{ assets.js('bottom')|raw }}
{% endblock %}

<script>
(function ($) {
Expand Down

0 comments on commit b2812e0

Please sign in to comment.