{% if page.images %}
  {% if page.images.compare %}
    <script defer src="https://cdn.jsdelivr.net/npm/img-comparison-slider@{{ site.img-comparison-slider.version }}/dist/index.min.js"></script>
  {% endif %}
  {% if page.images.slider %}
    <script
      defer
      src="https://cdn.jsdelivr.net/npm/swiper@{{ site.swiper.version }}/swiper-element-bundle.min.js"
      integrity="{{ site.swiper.integrity.js }}"
      crossorigin="anonymous"
    ></script>
  {% endif %}
{% endif %}
