問題タブ [swup]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
javascript - Swup で Slick スライダーを再初期化する
Swup を使用してページ遷移効果を作成していますが、滑らかなスライダーが壊れています。現在、ページの更新でのみ機能しますが、別のページに移動して戻ってくると壊れています。ドキュメントを見ると、JavaScript を再ロードする必要があることがわかりました。
私のsliders.jsファイルには次のものがあります:
そして、私のswup.jsファイルには次のものがあります:
コンソールエラーも発生しません。