<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									horizontalサポートで追加されたswiperについて - Cocoonテーマに関する質問				            </title>
            <link>https://wp-cocoon.com/community/cocoon-theme/horizontal%e3%82%b5%e3%83%9d%e3%83%bc%e3%83%88%e3%81%a7%e8%bf%bd%e5%8a%a0%e3%81%95%e3%82%8c%e3%81%9fswiper%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/</link>
            <description>Cocoon ディスカッション掲示板</description>
            <language>ja</language>
            <lastBuildDate>Tue, 14 Jul 2026 07:17:44 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: horizontalサポートで追加されたswiperについて</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/horizontal%e3%82%b5%e3%83%9d%e3%83%bc%e3%83%88%e3%81%a7%e8%bf%bd%e5%8a%a0%e3%81%95%e3%82%8c%e3%81%9fswiper%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-67146</link>
                        <pubDate>Sat, 24 Dec 2022 14:34:52 +0000</pubDate>
                        <description><![CDATA[ご確認いただきありがとうございます！後から読み込んでもここまでタイムラグがないとは思いませんでした。]]></description>
                        <content:encoded><![CDATA[<p>ご確認いただきありがとうございます！<br />後から読み込んでもここまでタイムラグがないとは思いませんでした。</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>わいひら</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/horizontal%e3%82%b5%e3%83%9d%e3%83%bc%e3%83%88%e3%81%a7%e8%bf%bd%e5%8a%a0%e3%81%95%e3%82%8c%e3%81%9fswiper%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-67146</guid>
                    </item>
				                    <item>
                        <title>RE: horizontalサポートで追加されたswiperについて</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/horizontal%e3%82%b5%e3%83%9d%e3%83%bc%e3%83%88%e3%81%a7%e8%bf%bd%e5%8a%a0%e3%81%95%e3%82%8c%e3%81%9fswiper%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-67145</link>
                        <pubDate>Sat, 24 Dec 2022 13:43:38 +0000</pubDate>
                        <description><![CDATA[----------------------------------------------テーマ名：Cocoonバージョン：2.5.4.4カテゴリ数：19タグ数：146ユーザー数：1----------------------------------------------［new_list horizontal=1］を記述した時(swiper動作の時)、swiper-bun...]]></description>
                        <content:encoded><![CDATA[<p>----------------------------------------------<br />テーマ名：Cocoon<br />バージョン：2.5.4.4<br />カテゴリ数：19<br />タグ数：146<br />ユーザー数：1<br />----------------------------------------------<br />［new_list horizontal=1］を記述した時(swiper動作の時)、swiper-bundle.min.cssが追加されている事を確認しました。<br />本件はクローズとします。<br /><br />CSSが追加さていたので、自前でswiper.jsを用いていたのですが、CSSが消え墓穴を掘りました笑</p>
<div id="wpfa-32847" class="wpforo-attached-file"><a class="wpforo-default-attachment" href="//wp-cocoon.com/wp-content/uploads/wpforo/default_attachments/1671889418-2022-12-24_22h32_56.png" target="_blank" title="2022-12-24_22h32_56.png"><i class="fas fa-paperclip"></i>&nbsp;2022-12-24_22h32_56.png</a></div>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>大門未知子</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/horizontal%e3%82%b5%e3%83%9d%e3%83%bc%e3%83%88%e3%81%a7%e8%bf%bd%e5%8a%a0%e3%81%95%e3%82%8c%e3%81%9fswiper%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-67145</guid>
                    </item>
				                    <item>
                        <title>RE: horizontalサポートで追加されたswiperについて</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/horizontal%e3%82%b5%e3%83%9d%e3%83%bc%e3%83%88%e3%81%a7%e8%bf%bd%e5%8a%a0%e3%81%95%e3%82%8c%e3%81%9fswiper%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-67143</link>
                        <pubDate>Sat, 24 Dec 2022 13:16:01 +0000</pubDate>
                        <description><![CDATA[先日の書き込みは見逃していました。すいません。

先日のこちらの方法は、JavaScriptでやっていました。JavaScriptだと結構タイムラグがありました。CSSをあとから読み込んでも多少早くなる程度ではないかと思って、何度も動作確認してみました。結果、体感的には全くCLS問題は感じませんね。これまでの実装と体感的には表示は変わらないように感じます。試しに実装したもの...]]></description>
                        <content:encoded><![CDATA[<p>先日の書き込みは見逃していました。すいません。</p>
<p></p>
<p>後からCSSを読み込むという方法も機能追加時、一旦実装してみたのですが、CLS的にはあまり良い実装ではなかったのでやめました。</p>
<p></p>
<p>先日のこちらの方法は、JavaScriptでやっていました。JavaScriptだと結構タイムラグがありました。<br />CSSをあとから読み込んでも多少早くなる程度ではないかと思って、何度も動作確認してみました。<br />結果、体感的には全くCLS問題は感じませんね。これまでの実装と体感的には表示は変わらないように感じます。<br />試しに実装したものを以下にアップしておきました。</p>
<p>------------------------------------------------<br />https://github.com/xserver-inc/cocoon<br />開発中の最新ファイルをダウンロードする場合は、上記ページのダウンロードボタンからzipファイルをダウンロードしてください。<br />https://wp-cocoon.com/wp-content/uploads/2020/07/github-dl.png<br />WordPressでの手動アップデート方法はこちら<br />https://wp-cocoon.com/manual-update-of-cocoon-theme/<br />------------------------------------------------</p>
<p>そちらの環境ではどうでしょうか。</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>わいひら</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/horizontal%e3%82%b5%e3%83%9d%e3%83%bc%e3%83%88%e3%81%a7%e8%bf%bd%e5%8a%a0%e3%81%95%e3%82%8c%e3%81%9fswiper%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-67143</guid>
                    </item>
				                    <item>
                        <title>RE: horizontalサポートで追加されたswiperについて</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/horizontal%e3%82%b5%e3%83%9d%e3%83%bc%e3%83%88%e3%81%a7%e8%bf%bd%e5%8a%a0%e3%81%95%e3%82%8c%e3%81%9fswiper%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-67142</link>
                        <pubDate>Sat, 24 Dec 2022 04:44:45 +0000</pubDate>
                        <description><![CDATA[@yhira さん
汚い方法ですが...ネット検索してたら、HTML5.2からlinkをbody内に書けるようになった？

wp_enqueue_swiperを削除
footer-javascript.phpのswiper-bundle.min.js追加前にlinkタグswiper-bundle.min.cssを追加]]></description>
                        <content:encoded><![CDATA[<p>@yhira さん</p>
<p>汚い方法ですが...<br />ネット検索してたら、HTML5.2からlinkをbody内に書けるようになった？</p>
<ul>
<li>wp_enqueue_swiperを削除</li>
<li>footer-javascript.phpのswiper-bundle.min.js追加前にlinkタグswiper-bundle.min.cssを追加</li>
</ul>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>大門未知子</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/horizontal%e3%82%b5%e3%83%9d%e3%83%bc%e3%83%88%e3%81%a7%e8%bf%bd%e5%8a%a0%e3%81%95%e3%82%8c%e3%81%9fswiper%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-67142</guid>
                    </item>
				                    <item>
                        <title>RE: horizontalサポートで追加されたswiperについて</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/horizontal%e3%82%b5%e3%83%9d%e3%83%bc%e3%83%88%e3%81%a7%e8%bf%bd%e5%8a%a0%e3%81%95%e3%82%8c%e3%81%9fswiper%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-67070</link>
                        <pubDate>Tue, 20 Dec 2022 11:54:33 +0000</pubDate>
                        <description><![CDATA[少し思いついたのですが、以下ではダメですかね？ヘッダーで判定できないなら、判定しJS出力する時、JS出力否なら追加したCSSを削除しては？
●utils.php
wp_enqueue_swiperでswiper-bundle.min.cssを無条件で追加。
●footer-javascript.php
$_IS_SWIPER_ENABLEを判定して、JSライブラリswi...]]></description>
                        <content:encoded><![CDATA[<p>少し思いついたのですが、以下ではダメですかね？<br />ヘッダーで判定できないなら、判定しJS出力する時、JS出力否なら追加したCSSを削除しては？</p>
<p><strong>●utils.php</strong></p>
<p>wp_enqueue_swiperでswiper-bundle.min.cssを無条件で追加。</p>
<p><strong>●footer-javascript.php</strong></p>
<p>$_IS_SWIPER_ENABLEを判定して、JSライブラリswiper-bundle.min.jsの追加と、JSを出力。</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>大門未知子</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/horizontal%e3%82%b5%e3%83%9d%e3%83%bc%e3%83%88%e3%81%a7%e8%bf%bd%e5%8a%a0%e3%81%95%e3%82%8c%e3%81%9fswiper%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-67070</guid>
                    </item>
				                    <item>
                        <title>RE: horizontalサポートで追加されたswiperについて</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/horizontal%e3%82%b5%e3%83%9d%e3%83%bc%e3%83%88%e3%81%a7%e8%bf%bd%e5%8a%a0%e3%81%95%e3%82%8c%e3%81%9fswiper%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-66898</link>
                        <pubDate>Mon, 12 Dec 2022 13:10:20 +0000</pubDate>
                        <description><![CDATA[あらかじめヘッダーでページの全ソースコードを読み込んで正規表現で検索するという方法も考えました。ただそれだと、全ソースコードを2回読み込むことになるので、それも非効率的かと現在の仕様にしました。何かショートコードが使われているかを知る方法があったり、他に良い方法思いついた場合は、即座にCSSが読み込まれないようにしたいと思います。]]></description>
                        <content:encoded><![CDATA[<p>あらかじめヘッダーでページの全ソースコードを読み込んで正規表現で検索するという方法も考えました。<br />ただそれだと、全ソースコードを2回読み込むことになるので、それも非効率的かと現在の仕様にしました。<br />何かショートコードが使われているかを知る方法があったり、他に良い方法思いついた場合は、即座にCSSが読み込まれないようにしたいと思います。</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>わいひら</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/horizontal%e3%82%b5%e3%83%9d%e3%83%bc%e3%83%88%e3%81%a7%e8%bf%bd%e5%8a%a0%e3%81%95%e3%82%8c%e3%81%9fswiper%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-66898</guid>
                    </item>
				                    <item>
                        <title>RE: horizontalサポートで追加されたswiperについて</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/horizontal%e3%82%b5%e3%83%9d%e3%83%bc%e3%83%88%e3%81%a7%e8%bf%bd%e5%8a%a0%e3%81%95%e3%82%8c%e3%81%9fswiper%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-66886</link>
                        <pubDate>Mon, 12 Dec 2022 11:11:13 +0000</pubDate>
                        <description><![CDATA[@yhira さん
詳しくないので、対策案の提示ができなく、申し訳なく。]]></description>
                        <content:encoded><![CDATA[<p>@yhira さん</p>
<p>詳しくないので、対策案の提示ができなく、申し訳なく。</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>大門未知子</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/horizontal%e3%82%b5%e3%83%9d%e3%83%bc%e3%83%88%e3%81%a7%e8%bf%bd%e5%8a%a0%e3%81%95%e3%82%8c%e3%81%9fswiper%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-66886</guid>
                    </item>
				                    <item>
                        <title>RE: horizontalサポートで追加されたswiperについて</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/horizontal%e3%82%b5%e3%83%9d%e3%83%bc%e3%83%88%e3%81%a7%e8%bf%bd%e5%8a%a0%e3%81%95%e3%82%8c%e3%81%9fswiper%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-66885</link>
                        <pubDate>Mon, 12 Dec 2022 10:21:41 +0000</pubDate>
                        <description><![CDATA[僕もそうしたいところなんですが、ここで設定した$_IS_SWIPER_ENABLE = true;というのは、ヘッダーのCSS呼び出しの部分では取得できないんですよね]]></description>
                        <content:encoded><![CDATA[<p>僕もそうしたいところなんですが、ここで設定した$_IS_SWIPER_ENABLE = true;というのは、ヘッダーのCSS呼び出しの部分では取得できないんですよね。<br />https://github.com/xserver-inc/cocoon/blob/28e7e160bf9684978c4b4f5a883fff41c0712056/lib/html-forms.php#L1013<br />おそらくヘッダーの時点ではショートコードはまだ呼び出されていない状態なんだと思います。<br /><br />ヘッダーで「ページ全体の中からショートコード（Swiperオプション）が使われているかどうか」を判断する何か良い方法をご存知でしょうか。<br /><br />後からCSSを読み込むという方法も機能追加時、一旦実装してみたのですが、CLS的にはあまり良い実装ではなかったのでやめました。</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>わいひら</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/horizontal%e3%82%b5%e3%83%9d%e3%83%bc%e3%83%88%e3%81%a7%e8%bf%bd%e5%8a%a0%e3%81%95%e3%82%8c%e3%81%9fswiper%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-66885</guid>
                    </item>
				                    <item>
                        <title>horizontalサポートで追加されたswiperについて</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/horizontal%e3%82%b5%e3%83%9d%e3%83%bc%e3%83%88%e3%81%a7%e8%bf%bd%e5%8a%a0%e3%81%95%e3%82%8c%e3%81%9fswiper%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-66862</link>
                        <pubDate>Sun, 11 Dec 2022 15:41:02 +0000</pubDate>
                        <description><![CDATA[●質問
カルーセルなどは設定オンの時のみ、JSライブラリ、CSSが追加され。しかし、カードでhorizontalの指定無なのに、常にswiper-bundle.min.cssが付加されます。
lib/utils.php無条件でswiper-bundle.min.cssを追加。tmp/footer-javascript.php$_IS_SWIPER_ENABLE=trueを判...]]></description>
                        <content:encoded><![CDATA[<p><strong>●質問</strong></p>
<p>カルーセルなどは設定オンの時のみ、JSライブラリ、CSSが追加され。<br />しかし、カードで<span style="color: #ff0000">horizontalの指定無</span>なのに、常にswiper-bundle.min.cssが付加されます。</p>
<p><strong>lib/utils.php</strong><br />無条件でswiper-bundle.min.cssを追加。<br /><br /><strong>tmp/footer-javascript.php</strong><br /><span style="color: #ff0000">$_IS_SWIPER_ENABLE=true</span>を判定し追加し、swiper-bundle.min.jsを追加。</p>
<p>swiper-bundle.min.cssも同様に、$_IS_SWIPER_ENABLE=trueを判定し、追加すれば良いのでは？<br />これでは何か問題ありますか？</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>大門未知子</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/horizontal%e3%82%b5%e3%83%9d%e3%83%bc%e3%83%88%e3%81%a7%e8%bf%bd%e5%8a%a0%e3%81%95%e3%82%8c%e3%81%9fswiper%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-66862</guid>
                    </item>
							        </channel>
        </rss>
		