Skip to content
Permalink
Browse files

Implement new Deferred Assets functionality for Grav 1.5.10+

  • Loading branch information...
rhukster committed Mar 21, 2019
1 parent d16a5c9 commit e1ca4f24b16bc75b344c65d51d641f31227833f8
Showing with 13 additions and 3 deletions.
  1. +7 −0 CHANGELOG.md
  2. +1 −1 blueprints.yaml
  3. +5 −2 templates/partials/base.html.twig
@@ -1,3 +1,10 @@
# v1.2.6
## mm/dd/2019

1. [](#new)
* Set Dependency of Grav 1.5.10+ which has support for new **Deferred Block** Twig extension
* Implement assets rendering using **Deferred Block** Twig extension

# v1.2.5
## 12/07/2018

@@ -13,7 +13,7 @@ bugs: https://github.com/getgrav/grav-theme-quark/issues
license: MIT

dependencies:
- { name: grav, version: '>=1.5.0' }
- { name: grav, version: '>=1.5.10' }

form:
validation: loose
@@ -23,14 +23,17 @@
{% do assets.addCss('theme://css/custom.css') %}
{% do assets.addCss('theme://css/line-awesome.min.css') %}
{% endblock %}
{{ assets.css()|raw }}

{% block javascripts %}
{% do assets.addJs('jquery', 101) %}
{% do assets.addJs('theme://js/jquery.treemenu.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/site.js', {group:'bottom'}) %}
{% endblock %}
{{ assets.js()|raw }}

{% block assets deferred %}
{{ assets.css()|raw }}
{{ assets.js()|raw }}
{% endblock %}

{% endblock head %}
</head>

0 comments on commit e1ca4f2

Please sign in to comment.
You can’t perform that action at this time.