Skip to content

Commit

Permalink
Use new frontend loading for vega chart CMS plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanw committed Oct 18, 2023
1 parent 546de9c commit 5377c5f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions fragdenstaat_de/fds_cms/templates/fds_cms/vega_chart.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,4 @@
<div data-vegachart data-vegachartdata="{{ instance.vega_json }}"></div>
</div>

{% addtoblock "js" %}
<script src="{% static 'js/vegacharts.js' %}" defer async></script>
{% endaddtoblock %}

{% addtoblock "css" %}
<link rel="stylesheet" href="{% static 'css/vegacharts.css' %}">
{% endaddtoblock %}
{% include "_frontend.html" with entry_point="vegacharts.js" %}

0 comments on commit 5377c5f

Please sign in to comment.