Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你们怎么解决的页面闪烁的问题?How do you solve the page flicker problem? #1651

Open
lovelyJason opened this issue May 5, 2023 · 0 comments

Comments

@lovelyJason
Copy link

$('.grid').isotope({
  itemSelector: '.grid-item',
  layoutMode: 'masonry',
  masonry: {
    gutter: 20
  }
})

想问下你们怎么解决的当页面加载完成以后, 会闪烁的问题。即html初次渲染完成,然后又经过isotope的dom操作,让dom元素的位置发生了变化,造成页面闪烁,有点丑。

I would like to know how you solved the problem of flickering when the page was loaded, that is, when the html was rendered for the first time and the dom operation of the isotope changed the position of the dom element, causing the page to flicker.As shown in the figure

a

Test case: https://qdovo.com/talking/

@lovelyJason lovelyJason changed the title 你们怎么解决的页面闪烁的问题?How do you solve the page flicker problem 你们怎么解决的页面闪烁的问题?How do you solve the page flicker problem? May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant