DerYeger/vue2-masonry-wall

[Bug]: FOC when Loaded

JMKelley opened this issue · 4 comments

Description

Got it working like a charm - the grid works flawlessly. Though, after initial render, I get a flash of content over the top of the data.

I assume it's the rest of the data being loaded in and the position is getting calculated for a quick moment, causing a flash of content?

Reproduction

Additional context

No response

Preferences

  • I want to be assigned to and work on this issue myself

Are you using SSR and have configured the ssr-columns prop?

Yes. Code below:

        <div class="container px-6 py-3" :class="{ 'max-w-screen-lg m-auto px-0' : this.layoutOption <= 2}">
          <masonry-wall :ssr-columns="parseInt(this.layoutOption)" :gap="16" class="px-5" :items="reddit">
            <template #default="{ item }">

Could it be lazy loading? Using nuxt-lazy-load

Yes, lazy-loading might cause this issue.

Closed due to no follow-up.