Announcement

Collapse
No announcement yet.

"Lazy loading" of related products?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    "Lazy loading" of related products?

    Hi folks, one of my clients has product pages that are slow to load because of a large number of products, and a custom discount system that slows things down. I'm working on the latter; but for the former, the client has suggested that we try having the page initially load without the related products, and use Javascript to pull them in and display them after the main product is already on display.

    Have any of you written code for this type of lazy loading? If you send me a snippet, that will save me some time.

    Thanks --
    Kent Multer
    Magic Metal Productions
    http://TheMagicM.com
    * Web developer/designer
    * E-commerce and Miva
    * Author, The Official Miva Web Scripting Book -- available on-line:
    http://www.amazon.com/exec/obidos/IS...icmetalproducA

    #2
    Kent Multer you can use the Runtime_RelatedProductList_Load_Query Runtime API function to pull in the related products via JavaScript (no API credentials needed).

    https://www.postman.com/mivamerchant...ist-load-query
    https://docs.miva.com/developer/deve...st_load_query/
    Nicholas Adkins
    Technical Training Specialist / Miva, Inc.
    [email protected]
    https://www.miva.com/mivalearn

    Comment

    Working...
    X