The simpler media website CMS
Hi,
I noticed that the map will not load if the album has a lot of images.
Example:
https://www.ralf-kerkhoff-bilderwelten.de/places/Geocode/
The big white space at the top is where usually the map will be displayed.
I have set the album layout to "Grid" because with Masonry layout the album will load forever.
(Disabling Openstreet Map will load the album without problems).
I have created a few test albums - it seems that the problem occurs when the album has more than 1600 images.
I did not find a limit in the plugins files....
Any ideas except commenting out the display of OSM in the album.php file?
Ralf
Comments
Do you have the marker clusters option active? Maybe try to disable that. That is handled by a third party plugin to leaflet and might have issues with large numbers. I don't know…
Any errors in the debug log in case it is something going wrong before that?
I see you're using the
tidy-assets
plugin. I believe it causes some JavaScript conflict. Try turning it off.Hi Fretzl,
turning off tidy assets would solve the issue.
What makes me wonder:
Even if I exclude all filesfrom the openstreetmap plugin in tidy assets:
openstreetmap/Control.MiniMap.min.css
openstreetmap/Control.MiniMap.min.js
openstreetmap/L.Control.MousePosition.css
openstreetmap/L.Control.MousePosition.js
openstreetmap/leaflet-providers.js
openstreetmap/leaflet.css
openstreetmap/leaflet.js
openstreetmap/leaflet.js.map
openstreetmap/leaflet.markercluster.js
openstreetmap/leaflet.markercluster.js.map
openstreetmap/MarkerCluster.css
openstreetmap/MarkerCluster.Default.css
openstreetmap/openstreetmap.css
It will only display a blank map without the location and number of images.
Cheers
Ralf
Note that tidyAssets is not an officially supported plugin even if its author is associated ZP team member actually.
It tries to optimize js/css a bit but it frequently causes trouble because it rewrites output. You generally don't need it actually.
OK, I disabled the plugin.
With Zenphoto 1.6.5 it does not seem to have negative impact on the site speed.
Probably it is impossible to improve a value of 100/100 and a CLS of 0.018 on mobile an 0 on desktop....
It is virtually impossible to get everything "green" on Google. The only sites I ever really managed that is pure static html… Although you should not be in the red area, even Google itself says that those values are not everything. Many big sites are not that good either.
Our own site is pretty good and we don't even use our own static html cache plugin.