fitMode "fixedWidth" not working on live site

I have set the pictures of my site with fitMode “fixedWidth”.
It works when showing at Editor mode, but when it is at live site, it doesn’t work.

Code:

$w("#imageCourse").fitMode = "fixedWidth";
console.log($w("#imageCourse").fitMode);

Error at the live site: Picture doesn’t show as “fixedWidth”

It keeps showing this error at the Inspect Console of live site:

The resource was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.

Works on editor: Picture shows as “fixedWidth”

Basically all pictures that I set with fixedWidth is not working on the live site, and the inspector shows the same error code. Please kindly advice. Thank you!

Editor link: https://editor.wix.com/html/editor/web/renderer/edit/f361e9ef-efc3-49f1-a2e4-4b426a63bb0d?editorSessionId=56DE22E6-4AB2-492A-3541-822E87A8C65A&metaSiteId=168611b3-e3cd-486c-9e5b-0b45aadb738d
Name: Mastery

Check if the code is under the $w.onReady() function

$w.onReady(function () {
 $w("#imageCourse").fitMode = "fixedWidth";
});

I do put that code under the $w.onReady() function.
Actually it worked yesterday, just that today the live site suddenly doesn’t work. I wonder if it is a bug from WIX. :thinking:
Anyone can help? Thank you

It is confirmed a bug and now fixed by WIX, thank you

Hi Jeffrey
This is a problem for me also. I’ve used the fitMode fixedWidth code for a repeater item, which works when previewing my site, but unfortunately doesn’t work when going live. Did Wix fix a bug local to your site or is it a Wix wide bug?
Thanks, glad yours works.
Chris

I’m having the same issue. Live site only, exactly as described above.

@jonatandor35 Please could you offer your advice on the issue I’ve mentioned above.

Hi Luke and Chris,
Can you please share the URLs for your sites so we can investigate? Thanks.

I think it was caused by the new, faster rendering of corvid sites. Currently not a problem as my site has been put back to the old way. https://www.psldn.com/event/MichaelClarkCosmicDancer/412546

Hi Marlowe, I’ve raised a ticket for this, so I’ll await the advice as I don’t want to publicly share the site just yet.

@chrisboulden Sounds good. Thanks.

Thanks for letting us know.