I’m building an online gallery for an artist. Occasionally the live site shows the repeater’s image placeholder instead of actual content, though the correct text comes through. This is resolved when the page is refreshed. It happens on pages with 5 images or 60 images (all reduced to lowest file size). I’ve tried Chrome and Safari, cleared history and cookies, on desktop and laptop, and it still happens, but only sometimes. This can’t happen when the site goes live.
Thanks so much, I’m glad there may be a solution. I’m a novice in code and learning. I collapsed the gallery (just learned what that meant by watching one of your YouTube videos!), I read the link on onReady, but I’m feeling in the dark a bit. I don’t know how to tell it to ‘load gallery’. Here’s my code… I tried using ‘loadPage’.
I really appreciate your help, thanks again.
$w.onReady( function () {
//TODO: write your page related code here… let mode = $w( “#image1” ).fitMode; // “fixedWidth”
$w( “#image1” ).fitMode = “fixedWidth” ;
}); import {local} from ‘wix-storage’ ;
const linkField = “link-portfolio-title” ; // replace this value
I’ve tried this and the gallery expands ok, tooltips hidden ok, but images still showing placeholders on first loading. I think I’m close but obviously missing something…
$w.onReady( function () {
//TODO: write your page related code here…
Now that I am visiting your page, I can see it loads fine for me. Though it seems like you are trying to load all records at once. You may consider limiting initial number or records and then adding a load more button or auto-load using code (aka Lazy Loading).
Also, was is it that you were trying to do with that extra code for dynamic page Urls?
Bless you Nayeli. I’m glad it looks good your end, and I’ll research Lazy Loading. Also glad I seem to have got most of the code right (your clear instructions).
The extra code for dynamic page Urls - no idea where that came from, inherited from copying some other code probably. I’ll take it out.
I have a lot to learn and I’m grateful for your quick and efficient help.
P.s. Check out my blog post about offering Corvid services to get extra revenue. I am only guessing you are doing this site for a client, so if you are and if you would like extra tips on what to do …that should give you bits of advice (that has helped me create my Corvid business from nothing).
Sorry to be back but it’s still a problem - maybe it’s a small thing to fix? The site is now upgraded and connected to its domain, the issue has improved but it’s still happening on the page with 50 images on it. We don’t want to split them up. https://www.davidbensonpaintings.co.uk/scottishscenes
Here’s my code. The other stuff on here is to control previous and next buttons on a dynamic page. Have I missed something or put something in the wrong place? Thanks for your help.
import { local } from ‘wix-storage’ ;
const linkField = “link-portfolio-title” ; // replace this value
@smcdee Hello Sarah … there id nithing wrong or missing from your code, it may have to do with your configuration.
You are most likely attempting to load a large amount of records at once. Try a smaller number and load more after that. A good number to display is the number of items that fit above the fold. You can load more via button click or another automated way (such as lazy loading method).