-->

Foundation 6 sticky FOUC

2019-09-02 16:25发布

问题:

I have a sticky element with data-stick-to-bottom however when I refresh the page, it flashes at the top before sticking to the bottom.

Is there a callback or a function to check if foundation is ready?

回答1:

Solved the issue by adding:

$(window).trigger('load.zf.sticky');

Before calling my showBanner function.