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
    As answer suggests this is default behaviour. Only faster hosting will minimise time it is shown to the point you don't notice. Jul 15 '19 at 21:16

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

  • 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. Jul 16 '19 at 4:33
  • there is any way to identify if KnockoutJS data is loaded ? Jul 16 '19 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
    Jul 16 '19 at 15:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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