Skip to content

Conversation

@c-w
Copy link
Member

@c-w c-w commented Apr 9, 2019

Currently the Swiper library is referenced in the base template which means that its CSS and JS get included and loaded on every page. However, the Swiper functionality is only used on the landing page. This leads to redundant requests to load the CSS and JS and may even lead to hard to debug potential issues with clashing JS or CSS.

This change moves the Swiper JS and CSS to only be included on the landing page.

Currently the Swiper library is referenced in the base template which
means that its CSS and JS get included and loaded on every page.
However, the Swiper functionality is only used on the landing page. This
leads to redundant requests to load the CSS and JS and may even lead to
hard to debug potential issues with clashing JS or CSS.

This change moves the Swiper JS and CSS to only be included on the
landing page.
@Hironsan Hironsan merged commit 6341015 into doccano:master Apr 12, 2019
@c-w c-w deleted the enhancement/reduce-swiper-include-scope branch April 12, 2019 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants