miskey Posted June 27, 2012 Share Posted June 27, 2012 (edited) I found that when I click an combination at a dropdown list at any product page, the product images change with an obvious lag. At each click, the previous image flash and the right image does not show up until after 2-3 seconds. My show domain is www.lingsmoment.com Can anyone have a look at my site. Thanks very much. Edited July 12, 2012 by miskey (see edit history) Link to comment Share on other sites More sharing options...
phrasespot Posted June 30, 2012 Share Posted June 30, 2012 (edited) The cause of the lag is too much going on within drop-down change event, in a non-optimised way. Find /themes/prestashop/product.tpl. Locate line: <select name="{$groupName}" id="group_{$id_attribute_group|intval}" onchange="javascript:findCombination();{if $colors|@count > 0}$('#wrapResetImages').show('slow');{/if};"> Change to: <select name="{$groupName}" id="group_{$id_attribute_group|intval}" onchange="javascript:findCombination();"> Caveat: You will lose 'Display all pictures' which appears when a specific combination is selected (attached). Your call which one you want to live with. Note to developers: onchange="javascript...? This is not 1985. What happened to $('...').bind('change'...? And there is a spurious semi-colon at the end of that line. Edited June 30, 2012 by phrasespot (see edit history) 1 Link to comment Share on other sites More sharing options...
miskey Posted July 12, 2012 Author Share Posted July 12, 2012 Thank you so much phrasespot. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now