lionel-m / galerie

[No longer maintained] Galleria extension for the Contao CMS
5 stars 2 forks source link

Sometimes Galleria is not loaded with [tabcontrol] #11

Closed conBlow closed 10 years ago

conBlow commented 10 years ago

I you Galleria for Contao on several content sites. Example: http://x-floc.com/de/produkte/maschinen/einblasmaschinen/em300 Sometimes the gallery is not loaded when the site is visited the first time or on reloads. I think the problem results in the use together with the [tabcontrol] extension (Mootools+jquery) Sou you have an idea how the problem can be fixed?

conBlow commented 10 years ago

I have made some screenshots. It just happened now… screenshot1 screenshot2

lionel-m commented 10 years ago

Hi,

Probably because the script does not load CSS in time. See: http://galleria.io/docs/references/errors/#theme-css-could-not-load

You can test this recommendation of the documentation:

Load the CSS file manually instead, you can do this by simply adding a LINK stylesheet tag in the head with the theme CSS file.

http://galleria.io/docs/themes/using_themes/#loading-a-theme-manually-using-script


Or set the "wait" option to true : http://galleria.io/docs/options/wait/

conBlow commented 10 years ago

Many thanks for the tip! It seems to work without failures now.

lionel-m commented 10 years ago

Ok perfect.

conBlow commented 10 years ago

Hm – sometimes the gallery does not load again… it is much better now but somehow… could interent connection problems be the reason? I checked it with an Android tablet pc and chrome by changing the position of the tablet and it seemed to me like that. But also the desktop pc had some blackouts with that. Any ideas? I already tried to load the javascript manually but it got worse.

lionel-m commented 10 years ago

I do not know why it does not work every time...

conBlow commented 10 years ago

Hm, ok… thanks for the quick feedback. I am nearly sure it has something to do with the tabs. Trying to find the reason…