What is the alternative to “scroll-linked positioning effect” to prevent performance issues?

后端 未结 1 1686
一向
一向 2021-01-16 00:44

I get the following warning in firefox

This site appears to use a scroll-linked positioning effect. This may not work well with asynchronous panning;

1条回答
  •  粉色の甜心
    2021-01-16 01:12

    I have the same problem here to javascript/jquery] .onscroll() then show the back to top button.

    I solved this problem with a "switch boolean" and a timer:

    (I had several solutions but it seems that this one is best)

    With an ftm license (Free To Mankind license: show this script to anyone still programming):

    
    
     
      
      
      on scroll 2019
     
     
    
     
     
      
    
    
    
      
    GO TO TOP
    bla bla bla
    not a lorem ipsum
    only bla bla bla
    bla bla bla
    not a lorem ipsum
    only bla bla bla
    bla bla bla
    not a lorem ipsum
    only bla bla bla
    bla bla bla
    not a lorem ipsum
    only bla bla bla
    bla bla bla
    not a lorem ipsum
    only bla bla bla
    bla bla bla
    not a lorem ipsum
    only bla bla bla
    bla bla bla
    not a lorem ipsum
    only bla bla bla
    bla bla bla
    not a lorem ipsum
    only bla bla bla
    bla bla bla
    not a lorem ipsum
    only bla bla bla
    bla bla bla
    not a lorem ipsum
    only bla bla bla
    bla bla bla
    not a lorem ipsum
    only bla bla bla
    bla bla bla
    not a lorem ipsum
    only bla bla bla
    bla bla bla
    not a lorem ipsum
    only bla bla bla

    0 讨论(0)
提交回复
热议问题