mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-23 08:03:49 +00:00
preload course json for a faster display
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
{% extends "@ChillMain/layoutWithVerticalMenu.html.twig" %}
|
||||
|
||||
{% block head_custom %}
|
||||
<link rel="preload" href="{{ preload(path('chill_api_single_accompanying_course__entity', {'id': accompanyingCourse.id, '_format': 'json' }), {as: 'fetch'}) }}" as="fetch" />
|
||||
{% endblock %}
|
||||
|
||||
{% block top_banner %}
|
||||
{{ include('@ChillPerson/AccompanyingCourse/banner.html.twig', { title: block('title') }) }}
|
||||
{% endblock %}
|
||||
@@ -17,7 +21,7 @@
|
||||
'layout': '@ChillPerson/menu.html.twig',
|
||||
'args' : { 'accompanyingCourse': accompanyingCourse }
|
||||
}) }}
|
||||
|
||||
|
||||
{% block block_post_menu %}
|
||||
{% endblock %}
|
||||
|
||||
|
Reference in New Issue
Block a user