1

I'm using NextGEN Galleryview template Wordpress plugin.

When I load the page, it first loads a very tall, blank document. Some 3000px in height.

Then this disappears and it loads the carousel with the correct height/elements.

I'd like it not to double-load, although I've not been able to identify where and how it occurs. I've compared it to another NextGEN gallery template (which loads properly) and FireBug shows them to have identical scripts/images, CSS and loading times.

4

1 に答える 1

0

問題が見つかりました。

galleryview.css ファイルには、次の重要な部分があります。

 /* IMPORTANT - Change '#photos' to the ID of your 
    gallery list to prevent a flash of unstyled content */

    #photos{ visibility: hidden; }

JS ファイルのデフォルト ID がここで使用されていない理由がわかりません。

いずれにせよ、JS ファイルにはギャラリー リストの ID はなく、クラスだけです。コードを次のように変更します。

    #myGallery{ visibility: hidden; }
   .galleryview { visibility: hidden; }

スタイルが設定されていないコンテンツのフラッシュを排除します。#myGallery は実際の ID であり、その可視性を変更すると、副作用なしでページの読み込みが速くなるようです。そのまま出発。

これが他の人に役立つことを願っています。この問題を解決するのに 2 日かかりました。

于 2013-01-12T05:56:40.610 に答える