基本的に、1 つのページにこれらの折りたたみ div がたくさんあり、折りたたみ div 内に iframe があります。(css を使用して、クリック可能な div をボタンのように見せました。)
問題は、基本的にページが読み込まれるたびに各 iframe 内のすべてのドメインが読み込まれるため、ページの読み込みに非常に長い時間がかかることです。
divがクリックされない限り、iframeの読み込みを遅らせたい。
現在、私のコードは次のとおりです。
Javascript
jQuery(document).ready(function() {
jQuery(".cont").hide();
jQuery(".title").click(function()
{
jQuery(this).next(".cont").slideToggle(500);
});
});
HTML
<div class="layer1">
<p class="title">test</p>
<div class="cont">
<iframe src="http://example.com" scrolling="no"></iframe>
</div>
<div class="cont">
<iframe src="http://example2.com" scrolling="no"></iframe>
</div>
<div class="cont">
<iframe src="http://example3etc.com" scrolling="no"></iframe>
</div>
まだ解決策が必要です。