Code Monkey home page Code Monkey logo

Comments (2)

toasty avatar toasty commented on August 19, 2024

Hiya - 10 seconds seems a very long time. It takes at most 1 second for me when it's just running on my desktop. (which is 2.16GHz Core 2 duo or something)
As far as I know it's not doing anything special, just using the block/template that the normal product page would. In the case where it takes 10 seconds, how long do normal Magento pages take to load?

Also there's a basic 'loading' message you can enable by uncommenting a line in scp_product_extension.js Look for the comment in the code which says:
//Uncomment the line below if you want an ajax loader to appear while any custom
//options are being loaded.

but that just puts a message down near the configurable options, and waits for the other ajax call which loads in any tier prices and custom options, rather than the image specifically, though it would be easy to move to the other call.

If you want it to do something better, how about, off the top of my head, in the showFullImageDiv function adding the following which will make the images fade out until the new ones are loaded, so that the customer can see something's happening at least:

after
if(productId) {
add
$$('div.product-img-box').each(function(el) {
el.fade({ duration: 0.3, from: 1, to: 0.5, queue: 'end' });
});

after:
onComplete: function() {
add:
$$('div.product-img-box').each(function(el) {
el.fade({ duration: 0.3, from: 0.5, to: 1, queue: 'end' });
});

You can add extra messages to that etc - but hopefully it's a useful start.

from magento-configurable-simple.

toasty avatar toasty commented on August 19, 2024

.

from magento-configurable-simple.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.