Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

image does not load fully - some times WordPress

  • SOLVED

Please bare with me, I think it is too much to explain and I will try to shorten for your reading.

<strong>Little intro, not quite sure if it would be relevant. </strong>
I have photography theme which I bought from Theme Foundry installed and configured.
I use to get "Image now loading in 30 sec" errors. I had posted this issues on theme support site (with many screen shots, below) and after few months of going back and forth they can not figure out. Somehow all 10 people I had look at the site saw the error but the theme developer never saw the error. As of now I am not getting the error either by hiding the error or upgrading Jquery.

30 Sec. error screen shots,
[[LINK href="http://meghdesigns.com/temp/Screenshot.png"]]http://meghdesigns.com/temp/Screenshot.png[[/LINK]] (july 20th support post)
[[LINK href="http://meghdesigns.com/temp/Screenshot4.png"]]http://meghdesigns.com/temp/Screenshot4.png[[/LINK]] (Sep 12 support post)
[[LINK href="http://meghdesigns.com/temp/Screenshot5.png"]]http://meghdesigns.com/temp/Screenshot5.png[[/LINK]]


Here is my questions and current issue.

When I or anyone visits the website and clicks on assigned work the images only load half way. When i visit home page and go back to assigned work, it loads fine. Same stuff happens to Personal work gallery.

[[LINK href="http://gregandersonphotography.com/home/"]]http://gregandersonphotography.com/home/[[/LINK]]

Screen shots
[[LINK href="http://meghdesigns.com/temp/ScreenShot6-prsnl.png"]]http://meghdesigns.com/temp/ScreenShot6-prsnl.png[[/LINK]]
[[LINK href="http://meghdesigns.com/temp/ScreenShot7_assignd.png"]]http://meghdesigns.com/temp/ScreenShot7_assignd.png[[/LINK]]

Answers (4)

2012-10-19

John Cotton answers:

Your javascript code is a bit strange...

On line 62 your call ResizeGallery(). After that, you set a time to call it again (in fact it gets called twice more).

Each time it loads

http://gregandersonphotography.com/wp-content/themes/photography_pro/javascripts/galleria-theme/galleria.classic.js

which has already been loaded!

Is that your code or as it came in the theme?

If I were you, I'd start by removing the first ResizeGallery. Then I'd remove the loadtheme call in that function.

They all seem unnecessary to me.

Ultimately, I think your problem is that you are loading a lot of large images and sometimes the browser gives up (that's why you got the original errors). You really need a script that loads the images in sequence rather than all together.

2012-10-19

Eva answers:

I would check the hosting. If it happens randomly, maybe the hosting account is overused, and because of this instead of loading the images, it delays to load or simply block the access for a few seconds. Maybe you just need more server resources from your site.


Tapna Shah comments:

OK, but then why didn't the developer see the error. At work I am on very faster internet line, and away from home at lest 15MB.


Eva comments:

you said that the error occures only sometimes. If the script loads fine 10 times from 20 attempts, most likely the script is fine

You see when 1 person loads your site, he sends a lot of requests to the webserver. These are than answered by the server. The number of reply the server can send in the same time is limited, it depends on what type of hosting do you have.

For split seconds the server can't answer to this or that user, so the script will generate the error while the next second can answer to other user, and the site will load just fine.
If the developer was already looking a lot to you site before, most probably all the site is cached somewhere in a temporary internet files. So he won't send all the requests to the server, instead his browser will take the images from his hard drive. Now he most likely never see the error, as other people, who already visited the site also don't see it.

If this is the problem, than It has nothing to do with your internet speed. It is like the water pipe: it can send only one amount of water, no matter how big the receiving bucket is.

I see that you are at justhost. There are a lot of people complaining about their quality of services.
(here for example : http://www.000webhost.com/directory/reviews/justhost.com)

2012-10-19

jazbek answers:

Hi Tapna,

Try adding this to your page, either in the header after jQuery is included, or the footer, or you can leave off the <script> tags and add it to a javascript file:

<script type="text/javascript">
$(window).load(function(){
$(window).trigger('resize');
})
</script>


Tapna Shah comments:

now it load the 1st image twice, it loads and refreshes and loads it again. Now I got this (css) error.
I don't want the images load twice, I don't want my potential customer to see that.
Thanks
Tapan