Skip to content

Sticky working correctly only after page refresh #9

Description

@danstramer

Hi Andrew,
On this site, I'm using the sticky plugin:
https://www.reali.org.il/en/%d7%aa%d7%99%d7%9b%d7%95%d7%9f-%d7%94%d7%93%d7%a8/

You will see that on the first load, the sidebar jumps to the top after scrolling a bit. After refreshing the page, the sidebar works as expected. Any idea why this is happenning?
This is the code used:
`jQuery(document).ready(function($){
if($(window).width()>768){

$('.widget-area').sticky({
topSpacing: 0, // Space between element and top of the viewport
zIndex: 100, // z-index
stopper: "#footer" // Id, class, or number value
});
}
});`

Thanks!
Dan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions