Hey,
I've got a weird issue with one of my drupal 6 sites.
When you load a product page the orange Pre-order and Add to Cart buttons flash on the page before jquery hides one of them.
Can any one point me in the direction to make it so that jquery does its work before the page is displayed so that the user doesn't get the weird flashing thing happening?
Have a look at one of the pages (and code source) here: http://www.coolthings.com.au/doctor-who-tardis-blue-laptop-case.html
Maybe there's another way to do this? i.e. maybe hide the pre-order button in the css and then let jquery swap it out if needed?
Thanks,
TasmanianMan.
Comments
jQuery or CSS
You could do it via CSS and use jQuery to modify the hidden value as needed or you could run the jQuery commands before the page content loads (but after the doc structure loads) by this:
Can you paste your jQuery code that you're executing? (I didn't have time to search through your source for the code - non-minified if possible)
Code to hide buttons
Hey Chasen,
Here's the unminified code: