2

I launched my websites just days ago... It has recently been VERY slow. Could it be the graphics? the link is: http://britobmarketing.com The onMouseOver effects just take too long to occur. The background also takes a while to load. it is all just slow... does someone know why may this be happening?

Thank you very much!

-Brito.

0

6 Answers 6

5

Absolutely, You have 2 images that are over 1.5meg each! that is huge for the web.

You MUST reduce the size of plainbgndwall.jpg and bgndwall.jpg below at least 250kb each.

Sign up to request clarification or add additional context in comments.

Comments

3

Yes, images are like any other computer resource. They take up memory, and they take up CPU processing cycles to render them. The larger the resource, the larger memory use, and the more CPU cycles it takes to render.

I suggest you make low quality, compressed versions of the images. Some imaging tools, like Adobe Fireworks (no advertising, it's just the one I use) have options to compress images without significant detail degradation. You can also reduce or remove unused colors also.

Also, it's not the main cause of all slow effects. DOM manipulation and bad code can also affect performance.

Comments

3

I have checked your page browsing time in a web based load test and it took about 11 seconds to load the page, not a great experience. Here are the results:

enter image description here

In above screen you can see the most of the time taken is by images so u can understand where u need to work. You can also run similar test by yourself at link below by entering your URL, you will learn lot more about what is happening while your page is loading:

http://www.uptrends.com/aspx/free-html-site-page-load-check-tool.aspx

3 Comments

nice tool! thank you very much!
@Brito thank for liking the info. If you consider info valuable would you please "Up" it? thanks.
No problem... it was of great help!
1

Those images are huge. Asking your user to download 4+MB on page load and then animating over it is really going to slow down any site. Reduce the size of the images and you will see increased performance.

I always try to get my images as close to or below 100KB to make the page load faster. And if I have more than 500KB of images to display I will defer the loading of them as the user navigates.

Comments

0

This will help:

https://developers.google.com/speed/pagespeed/

Comments

-1

The browser only loads the mouseover images when they are first needed. Once the browser has cached them, the swap animation seems much faster. You can force the images to be loaded immediately e.g. by putting them into hidden <img> tags.

That said, requiring so many large images for such a minor cosmetic effect is kinda bad. People with slow connections will likely have a bad user experience.

3 Comments

Sorry, but hidden image tags isn't that suggested. You should put it in javascript memory if you want to preload.
Ok, the idea of having the images preloaded is exactly what I need. Unfortunately, I'm really new in Java Script. @Travis J Can you offer a little more detail on how to do that? Thanks!!
@Brito - stackoverflow.com/q/6693623/1026459. Pretty much you are going to have an array of source strings. Then you are going to make an array of new Image() and then imgArr[index].src = correlating source string;. When you want the image, you just fetch the image from the image array. document.getElementById("myImageTag").src = imgArr[imageIndex].src;. This will allow for the image to be stored in imgArr one time, and then accessed instantly at any point in the future.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.