0

In my cart having 5 products / item , but when i'm loading/refresh my project again cart item count shows '0' at few seconds after show only the exact count. how to solve this issue!

1
  • 1
    As answer suggests this is default behaviour. Only faster hosting will minimise time it is shown to the point you don't notice. Commented Jul 15, 2019 at 21:16

1 Answer 1

1

Minicart is dynamic and loaded via KnockoutJS ,I believe, which means the count will be updated once the DOM is loaded and JS is executed

3
  • Thank you for your answer,i know counter dynamic and loaded via KnockoutJS that's fine sir, but i need to prevent displaying '0' or the cart icon. before load the values. Commented Jul 16, 2019 at 4:33
  • there is any way to identify if KnockoutJS data is loaded ? Commented Jul 16, 2019 at 4:36
  • 1
    Not sure if there is an event that KnockoutJS sends upon finish, but you might try to hid the counter until the whole page is done loading
    – Deggial
    Commented Jul 16, 2019 at 15:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.