Keyword

Images only load when clicking away

  • Oliver Johnson
  • Oliver Johnson's Avatar Topic Author
  • Offline
  • New Member
More
7 years 7 months ago #160513 by Oliver Johnson
Images only load when clicking away was created by Oliver Johnson
I don't know if this is a K2 issue, template issue or server issue

I've recently moved my site to a new server, a server which is much faster and has better caching etc. I haven't yet pointed my domain at the new server and the site is still a work in progress but on the home page (77.104.171.175/~worthi71/) I have a section called Most Popular Stories.

This is a K2 module which simply displays the image and intro of the most popular articles from selected categories.

However some of the images in this module do not initially load. When the page loads, every image in this module to the right of the article called "Target Rounds" hasn't loaded. However if click on another browser tab you have open and then instantly click back, the images are there.

If you go to view the actual articles, the images (actually a larger version of the image) loads quickly.

I don't think it's image size as we aren't talking massive images with massive file sizes and they have been optimised anyway.

I've tried turning off all caching and cleared my browser cache. I've tried multiple browsers on multiple computers and also on Mac and PC's and all show the same thing. I've even tried different ISP's

I can't work out why clicking away from the site and back again would make the images load, as it's not sending any new command to the server. I could understand if it was just one computer seeing this but it's on every computer I've tried.

This is how this module loads initially (you have to click the right arrow a couple of times to see this)
http://imgur.com/a/CKigA

Clicking away from the site onto another browser tab and then instantly back again and you see this.
http://imgur.com/a/xI7jV

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 7 months ago #160539 by Krikor Boghossian
Replied by Krikor Boghossian on topic Images only load when clicking away
Hello,

This is not from K2. This is a lazy-loading script.
My bet would be that this is a template feature.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Oliver Johnson
  • Oliver Johnson's Avatar Topic Author
  • Offline
  • New Member
More
7 years 7 months ago #160541 by Oliver Johnson
Replied by Oliver Johnson on topic Images only load when clicking away
Thank you Krikor, at least I now know where to look!

Much appreciated.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 7 months ago #160545 by Krikor Boghossian
Replied by Krikor Boghossian on topic Images only load when clicking away
You re welcome Oliver :)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Oliver Johnson
  • Oliver Johnson's Avatar Topic Author
  • Offline
  • New Member
More
7 years 7 months ago #160546 by Oliver Johnson
Replied by Oliver Johnson on topic Images only load when clicking away
Found the cause. Turns out it was the JCH Optimize Pro plugin. In the Pro features is the option to enable Lazy Load but bizarrely if you turn the plugin off it doesn't turn off Lazy Load as well. Instead you have to specifically turn off Lazy Load.

Well you learn something new everyday ;)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum