Kasonde Neddy
asked on
Artwork Profile Page: images disappear from list after image preview dialog is closed
Hello experts,
Need some help on a project we are working... our front end js has some issues. On our art gallery, on the artwork view page, when we click an artwork, it opens up a fancy box, but when we close the fancy box view of the image, the image thumbnail disappears from the display. You can check at: http://www.einsteinsolutions.xyz/chaminuka/public/artwork/unknown-9/profile
Trying figure out why that is happening?
Rgds
Need some help on a project we are working... our front end js has some issues. On our art gallery, on the artwork view page, when we click an artwork, it opens up a fancy box, but when we close the fancy box view of the image, the image thumbnail disappears from the display. You can check at: http://www.einsteinsolutions.xyz/chaminuka/public/artwork/unknown-9/profile
Trying figure out why that is happening?
Rgds
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Chris,
Thanks so much for this...we added the href url and it is working fine :-) thanks for your help
Thanks so much for this...we added the href url and it is working fine :-) thanks for your help
No worries :)
It makes sense to generate a thumbnail. Fancybox will load up your main image when you click on it. If you use the main image as the thumbnail, it's likely to slow your page down a lot - you're basically downloading a full size image just to show a thumbnail - Imagine a page with 100 images - potentially making your page 100mb in size !!!! If you use thumbnails, each with a size of 10kb for example, your page would come in at 1mb - a significant difference :)
It makes sense to generate a thumbnail. Fancybox will load up your main image when you click on it. If you use the main image as the thumbnail, it's likely to slow your page down a lot - you're basically downloading a full size image just to show a thumbnail - Imagine a page with 100 images - potentially making your page 100mb in size !!!! If you use thumbnails, each with a size of 10kb for example, your page would come in at 1mb - a significant difference :)
ASKER
Chris Stanyon,
You are so right, and makes sense why we have slow load. Now how to do this in laravel or jquery....is what I am trying to figure out. Learning so much through you experts!
You are so right, and makes sense why we have slow load. Now how to do this in laravel or jquery....is what I am trying to figure out. Learning so much through you experts!
ASKER
Thanks so much for this...we added the href url and it is working fine :-) thanks for your help and noticing that. I guess we need to generate the thumbnail dynamically differently in our code but can look at that in another question.
Rgds