@lucas and @smooth-graphics
Thank you! A lot of good suggestions here
Well, I then cache if and getImageWidth, but saw no performance improvements. And yes, I need getImageWidth.
I’ll take in account the possibility of using wayfinder, yes. I also think you’re right saying that then nesting thing is bad.
As for the design/colours, well.. I know, but I’m not the designer here: I’m programming this site for a graphic agency.. If it was me.. Well, I wouldn’t do the product slider too, I think it’s not usable at all and also adds about 1.5 Mb to the total page size... Bleah!
Thank you, I’ll let you know if I found a way to optimize this page. So someone with the same problem can read.