Missing Image when a Retina Alternative is Added

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
drooper
 
 
Posts: 9
Joined: Tue Jan 24, 2017 4:43 pm
Location: England

Missing Image when a Retina Alternative is Added

Post by drooper »

Hello All.

I have a page with a fixed header layout grid that is set to hidden.
The grid contains a .png image with a retina alternative.
This page is embedded on other pages within the project.
On these pages it is triggered by a bookmark with an onscrollhide/show with effect event.
As the page is scrolled down, the header fades in, but the image is missing.
It only appears when the screen is scrolled back to the top.

When the retina alternative is removed from the image, It works as expected.
As the page is scrolled down, the header fades in showing the image.

Any thoughts ?

Cheers.

*Post edited to remove links.
Last edited by drooper on Wed Jul 08, 2020 12:37 pm, edited 1 time in total.
User avatar
Pablo
 
Posts: 22472
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Missing Image when a Retina Alternative is Added

Post by Pablo »

The retina image is loaded by a JavaScript which monitors when the image comes into view (lazyload).
The onscrollhide/show event does the same thing, so the two scripts conflict with each other.

Maybe you can use a 'Picture' object instead? This does not use JavaScript to load the retina image.
http://wysiwygwebbuilder.com/picture.html
drooper
 
 
Posts: 9
Joined: Tue Jan 24, 2017 4:43 pm
Location: England

Re: Missing Image when a Retina Alternative is Added

Post by drooper »

Thank you for your prompt reply Pablo.

As you suggested, using the Picture object with an adaptive image does the trick.

If I may point out though, it did previously work using WB14.

Cheers
Post Reply