ファンシーボックスのiframeを持っていますが、リンクをクリックして開く前にiframeのコンテンツをプリロードする方法はありますか?iframeのコンテンツはスクリプトであり、画像ではありません。
脚本:
$("a.fancybox").fancybox({
fitToView: false,
afterLoad: function(){
this.width = $(this.element).data("width");
this.height = $(this.element).data("height"); }
});
HTML:
<a class="fancybox fancybox.iframe" data-width="950" data-height="90%" href="/?page_id=1508" >MLS® SEARCH</a>
ありがとう!