• Hello.
    Simply two problems:
    I activated the heart to add to the list in the woocommerce product loop.
    When you enter the shop page the hearts appear after a couple of seconds .. I examined the loading with Chrome and I see that it actually takes long enough to load the function which, of course, remains running to manage the addition to the wish list .. Obviously this slows down the complete loading of the pages where the wishlist is active. Why this delay? Can anything be done?

    I use OceanWp as a theme: so clean! I have activated the infinite loading function on the shop page. 20 products are loaded and, as mentioned, hearts appear only after 2 seconds. Scrolling through the 20 products, arrived at the end, the infinite scroll starts which proposes another 20 products but, unfortunately, on the products that are added in this way in the loop (ie using an ajax function of the theme) the hearts do not appear! I do not understand why!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Antonio La Rocca

    (@therock130)

    Hi there

    I activated the heart to add to the list in the woocommerce product loop.
    When you enter the shop page the hearts appear after a couple of seconds .. I examined the loading with Chrome and I see that it actually takes long enough to load the function which, of course, remains running to manage the addition to the wish list .. Obviously this slows down the complete loading of the pages where the wishlist is active. Why this delay? Can anything be done?

    Is it possible that you’re loading ATW buttons via ajax? in this case system needs to trigger an ajax call once document is ready, retrieve buttons and show them via js code, causing a slight delay
    You can disable this feature from dedicated option under WP Dashboard -> YITH -> Wishlist -> General Settings

    I use OceanWp as a theme: so clean! I have activated the infinite loading function on the shop page. 20 products are loaded and, as mentioned, hearts appear only after 2 seconds. Scrolling through the 20 products, arrived at the end, the infinite scroll starts which proposes another 20 products but, unfortunately, on the products that are added in this way in the loop (ie using an ajax function of the theme) the hearts do not appear! I do not understand why!

    Reason may be the same; if you use Ajax loading, you’ll need an explicit integration with any infinite scrolling feature

    Thread Starter kingdave

    (@kingdave)

    Ciao Antonio!

    Ti scrivo in italiano presumendo dal tuo nome che lo sia anche tu!
    In effetti disattivando il caricamento Ajax ho risolto entrambe i problemi ed ho velocizzato il caricamento completo della pagina di un paio di secondi.
    Ovviamente ti ringrazio… ma mi chiedo: ma il caricamento Ajax quando andrebbe usato?

    Plugin Support Antonio La Rocca

    (@therock130)

    Ciao, è un piacere parlare italiano ogni tanto ??

    Il caricamento AJAX in teoria può essere usato in ogni condizione, e anzi è raccomandabile, dato che bypassa la cache del server, garantendo che l’utente veda un bottone aggiornato sulla base della sua wishlist attuale

    Tuttavia questo introduce una piccola latenza, come hai giustamente notato tu, dovuta al fatto che prima il browser deve caricare l’intera pagina (document ready), e solo dopo eseguire una chiamata AJAX (che di per sè richiede altro tempo) per caricare i bottoni
    E’ in buona sostanza un tradeoff, che porta alcuni benefici, al costo di un po’ di ritardo nel caricamento dei bottoni

    Per quanto riguarda l’infinite scrolling, come detto, in quel caso il problema è solo legato alla mancanza di un’integrazione specifica

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘slow on loop and not work on ajax load more’ is closed to new replies.