Please help!!!

They have: 121 posts

Joined: Apr 2003

I was tinkering with my website putting some JavaScript in and then taking a look at it in a browser. Then I take it out. Now my site loads extremely SLOW. Can someone take a look at the code and tell me if they see anything that might be causing this?

Thanks in advance.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

... The code is massively bloated and redundant. I can barely figure it out. You may want to clean up that code (a lot) and then ask. It's asking quite a lot for someone to dig through that by hand.

<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
'

Don't use FP, eh? It's just not up to the task. Look at validating your code and go through it with a text editor. You'll shrink that code up easily.

With a site that is most likely going to be very graphics heavy, the slimmer the code, the better.

They have: 121 posts

Joined: Apr 2003

Yes i agree, but at this point that what you suggested isn't high on my priority list. Right now I just need to figure out why the heck the footer is loading so slowly. Everything was working fine before I started inserting JS into it playing around with the site today. I do need to "clean up" the code and I will at some point in the near future.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.sunglassreplicas.com%2F&charset=%28detect+automatically%29&doctype=XHTML+1.0+Strict

It's hanging on your urls not being encoded, &amp; instead of &.

You are specifying that the code is XHTML, but you have a number of tags open (img and meta specifically).

You have <script ..> and </script> <-- those tags don't match so it's slowing down because it thinks a script is open still.

VALIDATE, VALIDATE, VALIDATE. It will save you a world of trouble.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Quote: Originally posted by ronhollin
Yes i agree, but at this point that what you suggested isn't high on my priority list. Right now I just need to figure out why the heck the footer is loading so slowly. Everything was working fine before I started inserting JS into it playing around with the site today. I do need to "clean up" the code and I will at some point in the near future.

Just a note that if you're not willing to do it, why would you expect that someone else is willing to slog through it on your behalf when the problem is the coding in the first place?

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Through further examination and discussion, while the code does need revamping, the issue appears to be the counter code and its host site, which is down.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.