Photo gallery lazy load

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
kenswindon
 
 
Posts: 71
Joined: Tue May 18, 2021 10:56 am

Photo gallery lazy load

Post by kenswindon » Tue May 18, 2021 11:06 am

I'm having a problem with my page loading, I have about a 100 images on each page in 3 or 4 photo galleries, they are all set as lazy load but I'm not sure this is working I cannot see any reference to it in the HTML code and all images seem to load together, any help would be appreciated.

User avatar
BaconFries
 
 
Posts: 5493
Joined: Thu Aug 16, 2007 7:32 pm

Re: Photo gallery lazy load

Post by BaconFries » Tue May 18, 2021 11:15 am

If you view the source then you should see reference to the code as such if not please provide a url so we can check

Code: Select all

<script src="wb.lazyload.min.js"></script>
<script>
$(document).ready(function()
{
   $('img[data-src]').lazyload();
});
</script>

kenswindon
 
 
Posts: 71
Joined: Tue May 18, 2021 10:56 am

Re: Photo gallery lazy load

Post by kenswindon » Tue May 18, 2021 11:28 am

my site is https://freeclassicimages.com/ that seems to be there so what else could be slowing it in mobiles, google are marking it down for slow loading average 230ms should be less than 100, I originally built this 13 years ago with a much earlier version of wysiwyg and have continually added to it and always updated to version now 16, could there be something in the pages not updated as they were originally set up years ago when mobiles were irelevant.

User avatar
BaconFries
 
 
Posts: 5493
Joined: Thu Aug 16, 2007 7:32 pm

Re: Photo gallery lazy load

Post by BaconFries » Tue May 18, 2021 11:43 am

Looking at the source you have selected 'Emulate-IE8' in the properties page. Please set this to 'none' as IE 8 is no longer supported. I also suggest that you set the charset to UTF8 as well rather than iso-8859-1.

kenswindon
 
 
Posts: 71
Joined: Tue May 18, 2021 10:56 am

Re: Photo gallery lazy load

Post by kenswindon » Tue May 18, 2021 11:53 am

they were obviously set like that from the beginning, I can set character set in site properties all in one go but I can only see IE in page properties is that the only way to change it as I will have to set that in all 300 pages, can you help please

User avatar
Pablo
 
Posts: 23930
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Photo gallery lazy load

Post by Pablo » Tue May 18, 2021 12:06 pm

The default character-set for new pages is UTF-8
Also, IE8 is not enabled by default.

There is another issue:
You have added invalid code to the page, this makes the structure of the entire page invalid. Please remove all code you have place inside the body tag. This section may only contain attributes.

kenswindon
 
 
Posts: 71
Joined: Tue May 18, 2021 10:56 am

Re: Photo gallery lazy load

Post by kenswindon » Tue May 18, 2021 12:10 pm

that code is for web stats where should that be then?

User avatar
BaconFries
 
 
Posts: 5493
Joined: Thu Aug 16, 2007 7:32 pm

Re: Photo gallery lazy load

Post by BaconFries » Tue May 18, 2021 12:28 pm

In Page Properties you can use either After <body> tag - Before </body> tag
So it looks like this
<body>---- code here ----</body>

kenswindon
 
 
Posts: 71
Joined: Tue May 18, 2021 10:56 am

Re: Photo gallery lazy load

Post by kenswindon » Tue May 18, 2021 12:41 pm

Thanks a lot, as you can tell I know nothing about coding but thanks to the wonderful WYSIWYG I have built several good websites and recomended it to friends, hopefully all will be fine now, once again many thanks.

kenswindon
 
 
Posts: 71
Joined: Tue May 18, 2021 10:56 am

Re: Photo gallery lazy load

Post by kenswindon » Thu May 27, 2021 9:21 am

Also google recommends I extend cache to 30 days, how do I do this as I can't find any where to change it.

User avatar
Pablo
 
Posts: 23930
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Photo gallery lazy load

Post by Pablo » Thu May 27, 2021 9:46 am

Which specific 'cache' are you referring to?

kenswindon
 
 
Posts: 71
Joined: Tue May 18, 2021 10:56 am

Re: Photo gallery lazy load

Post by kenswindon » Thu May 27, 2021 10:59 am

my website is slow loading so looking for answers,
Google webmaster says:

A long cache lifetime can speed up repeat visits to your page.

User avatar
Pablo
 
Posts: 23930
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Photo gallery lazy load

Post by Pablo » Thu May 27, 2021 11:23 am

I think this is server related.

kenswindon
 
 
Posts: 71
Joined: Tue May 18, 2021 10:56 am

Re: Photo gallery lazy load

Post by kenswindon » Thu May 27, 2021 1:28 pm

this is what google is giving me

https://developers.google.com/speed/pag ... e&hl=en_GB

if you can open this without my sign in

please let me know what you think I could do to improve it

User avatar
Pablo
 
Posts: 23930
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Photo gallery lazy load

Post by Pablo » Thu May 27, 2021 2:00 pm

I'm sorry, I do not have knowledge about server side caching. You will need to contact your web host about this.

Post Reply