Page speed (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


Eli -> Page speed (1/8/2003 6:00:40)

Hiya!

Could you give me some ideas on how to speed up this page - its seems v.slow:

http://www.leisure-ideas.com/map.asp

thanks




Spooky -> RE: Page speed (1/9/2003 2:52:03)

Most of the image headings are 12kb jpg' s.
Id reduce them to 3-5 color gifs and expect no more than 2-3k each.
You may also be able to reduce the main image in a similar fashion

There is a problem where the body/html tag is closed about 10 lines from the start.

To speed up the image map, you may want to use something other than poly to designate the hotspot as this uses a large number of co-ordinates.

The page weight itself, is only 38k, so the html source is not too heavy. Id concentrate on the images first.

Is there any database interaction there?




Eli -> RE: Page speed (1/9/2003 4:12:22)

yes there is - there is a DRW which I tried to diet but to no avail and a random ASP script.




Eli -> RE: Page speed (1/9/2003 5:39:18)

Thanks Spooky.

I' ve made all the images (apart from the header) into gifs, took them down to 3kb.

I' ve also managed to diet my DRW - I think I was messing up with the includes (I had about 8 includes) and only kept two! [:)]

Is there anyway to speed up the random ASP Script?




Spooky -> RE: Page speed (1/9/2003 14:12:01)

How have you done the random script? and what does the DRW generate?




Eli -> RE: Page speed (1/9/2003 16:44:41)

my random script looks like this:

quote:


<%
' ADO Constant. Dont change this
Const adCmdText = &H0001

' Connection string and SQL statement
Dim query, connStr
query = " select DatabaseRefNo, EstablishmentName, PostalTown, Description from main WHERE (Country = ' Great Britain' )"
connStr = " Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath(" databse.mdb" )
' Opening database
Dim rs
Set rs = Server.CreateObject(" ADODB.Recordset" )
rs.Open query, connStr, 3, , adCmdText

' Generating random number from total number of records
Dim intRnd
Randomize Timer
intRnd = (Int(RND * rs.RecordCount))

' Now moving the cursor to random record number
rs.Move intRnd

' Showing the random statement
%>
<font color=" #000066" face=" Verdana" size=" 2" >
<% Response.Write " <b>" & rs(" EstablishmentName" ) & " , in </b>" %>
<% Response.Write " <b>" & rs(" PostalTown" ) & " </b>" %>
</font>
<p style=" word-spacing: 0; line-height: 100%; margin: 0" ><font color=" #800000" face=" Verdana" size=" 2" >
<% Response.Write rs(" Description" ) & " </b>" %>


my DRW is getting a DISTINCT WHERE using a drop down.

I' ve noticed that my random script comes up quite quickly by itself and then everything else appears, att he same time, some moments later - is this the problem? Its all in the same table.




Spooky -> RE: Page speed (1/9/2003 16:53:42)

Its certainly coming up much faster.
Some of the photos of hotels are about 20k - for the size, Id expect no more than 6k

You still have

</BODY>
</HTML>

In the top part of the page, before the content fully starts.
I believe its the image map and ' poly' hotspots thats causing any speed problems now.




Eli -> RE: Page speed (1/9/2003 18:33:31)


quote:

ORIGINAL: Spooky

To speed up the image map, you may want to use something other than poly to designate the hotspot as this uses a large number of co-ordinates.



what do you suggest?




Spooky -> RE: Page speed (1/9/2003 19:26:21)

I suggest testing that theory first
1 page without the image map (but with the image) the other with the image map.

Also, try one without the 20k hotel photo - I think that will speed it up as the table waits for that loading to complete.




Long Island Lune -> RE: Page speed (1/10/2003 23:42:59)

Micah,

I love your map1.gif. Very nice. I have High-Speed DSL but for a moment I thought I had my old dial-up connection as I waited for your site to load in. But it seems to have speeded up a little since I went to your site 2 days ago.

I think it is your map1 photo and all the poly hyperlinks you have on it that could be the culprit. Great work but too much confined in it. This is only an educated guess.

What I would do.

Test the page without certian things on it. Remove all the poly' s, then test the page for speed. Then put them back and remove something else. This will soon reveal the time wasting culprit on your site.




Eli -> RE: Page speed (1/11/2003 6:33:12)

could you have a look:

without map:

http://www.leisure-ideas.com/mapnomap.asp

without 20k photo:

http://www.leisure-ideas.com/mapnophoto.asp

for me it seems like the one without the 20k photo loads faster. What do you think?




Long Island Lune -> RE: Page speed (1/11/2003 12:15:48)

Micah,

The one WITH the map loaded in 15 seconds on DSL.
The one WITHOUT the map loaded in 10 seconds on DSL.

Your getting there. I have to admit that I liked your original page very much and that British map. It' s a shame you have to rework it. But your getting there slowly. [;)]

LLLuneeeeeeeeeeee [:)]






Long Island Lune -> RE: Page speed (1/11/2003 12:19:24)

Micah,

The page with the 20K photo loaded in 15 seconds w/ DSL.
The page without the 20K photo loaded in 10 seconds w/DSL.

I like that British map very much and it is a shame that you have to rework the page. [;)]

How many " includes" are you still using???

LLLuneeeeeeeeeee [:)]




Eli -> RE: Page speed (1/11/2003 12:32:52)

quote:

ORIGINAL: Long Island Lune

How many " includes" are you still using???



just the header is an include - heres the page include:

http://www.leisure-ideas.com/mapnoincludes.asp


I may end up not using the photo anyway because it doesn' t show up in NN




Long Island Lune -> RE: Page speed (1/11/2003 12:55:54)

Why can' t NN " work and play well with others" ? That' s too bad.

Well if you remove the photo you won' t need all the poly links too. That will increase speed.

Or...

You could just keep the photo " staticlly" for display purposes to give the site it' s professional look but remove all the hyperlinks embedded within it. And it will still work in NN.







Eli -> RE: Page speed (1/11/2003 13:59:49)

i was meaning the 20k photo of the " hotel of the moment" . For some reason NN doesn' t want to play.




Long Island Lune -> RE: Page speed (1/11/2003 18:40:45)

AAB111431.jpg ?

Could you convert that to .gif ?

I don' t know the rules of NN and .jpg, or NN and anything. [8|]

I' m funny about NN. If anybody complains that they can' t see something on one of my sites, I tell them to use IE. I have an MS-graphic-link on each site that allows you to download the latest version. BUT that is my lazy answer, not the right answer. All developer' s should try their best to accomodate NN. I just refuse to play that game. Most of my client' s don' t seem to care. But truthfully, I haven' t got that many complaint' s..... " luckily" ..... Knock on wood...

http://www.microsoft.com/windows/ie/default.asp

LLLuneeeeeee [;)]










Spooky -> RE: Page speed (1/11/2003 18:56:52)

The normal rules apply - ensure the same case in the html as in the filename, no spaces and NN sucks. [;)]




Spooky -> RE: Page speed (1/11/2003 19:00:02)

Also, when adding images to the page, the perceived display can be sped up if you specify height and width attributes for the picture.
Then the browser can render the table faster if it knows what size image to expect.
Using 50% as an image width may trip the NN browser?




Long Island Lune -> RE: Page speed (1/11/2003 19:27:55)

Spooky,

Bravo!!!
I didn' t want to actually come right out and say that -but I agree. NN " SUCKS" .
Thank You... Thank you... No autographs please!!!

quote:

specify height and width attributes

That is true.

[:o][:)][:D][:p] Luneeeeeeee [8D][8|][:' (][&:]
Remember - when dealing with a LUNE - all faces apply!!!




Eli -> RE: Page speed (1/13/2003 5:57:26)

Thanks for all of this - its been an education!

Obviously I' d like to keep both the 20k and the poly map. However I also know that something has got to change.

What are my alternatives to using a poly map?




Long Island Lune -> RE: Page speed (1/13/2003 12:44:16)

Micah,

You really have a delimmea. That' s tough. I was just looking at your page closer. I can see that you wrapped the borders of each English and Irish county tightly with the links. That looks like a lot of work. I would hate to see that map and all its links ruined.

When I went to your site this morning I noticed it loaded right in. But it may have still been in my browser memory.

The only thing(s) I could think of would ruin the map and/or all those county border wrapping links.

You could:
1): Put the map in a pop-up. [:j]
Or...
2): Remove all the links and place them in a drop down next to the map. [8|]
Or...
3): Rect??? No. That would look sloppy. [:@]
Or...
4): Just leave it alone and make people wait. [:)]
Or...
5): Explain to your client the situation and let them make the decision. [&:]

To tell you the truth, I would choose option 4 above.
Luneeeeeeeeeeeeeeeeee [:)]











Eli -> RE: Page speed (1/13/2003 17:35:11)

quote:

5): Explain to your client the situation and let them make the decision. [&:]


I am the client - that makes it EVEN HARDER!!!!

quote:

ORIGINAL: Long Island Lune

4): Just leave it alone and make people wait. [:)]
Or...

To tell you the truth, I would choose option 4 above.
Luneeeeeeeeeeeeeeeeee [:)]


I' m thinking 4 as well - thanks!




Eli -> RE: Page speed (1/14/2003 5:42:44)

here' s a thought ......

can I use an if then statement to say IF url is loaded THEN go to page else " loading"

(thats probably a long shot but I' m grasping here!)




Long Island Lune -> RE: Page speed (1/14/2003 11:35:23)

I' m not sure I understand...




Eli -> RE: Page speed (1/14/2003 11:38:20)

it' s ok - i was just guessing.

I' ve actaully found a couple of way to bring up a message to say " sorry its slow, but its worth it"

take a look:

http://www.leisure-ideas.com/map.asp

http://www.leisure-ideas.com/mapbackup.asp


I' m not sure which one I like better - but i' d prefer a gif animation rather than text




Long Island Lune -> RE: Page speed (1/14/2003 11:46:45)

Micah,

I like that. I checked out both of them. I like:

quote:

http://www.leisure-ideas.com/map.asp


the best. It' s funny how the little box can make the waiting not seem so bad. I think you' ve got it!!!

LLLuneeeeeeeeeee




Cookie -> RE: Page speed (1/15/2003 7:42:06)

How about using a preload image script?

http://www.dynamicdrive.com/dynamicindex4/preloadimage.htm

It has a progress bar, so the user " knows" that something is happening

You can change it around a bit so it looks a little bit more user friendly.




Eli -> RE: Page speed (1/15/2003 8:02:46)

Cookie - thanks. I looked at this one yesterday but but prob wasn' t really the images but the whole page, espeailly the poly map coordinates.

I chose to go with a somple javascript function that disappears on load.

Check it out:

http://www.leisure-ideas.com/map.asp

what do you think?




Cookie -> RE: Page speed (1/15/2003 11:12:03)

It took a while to connect to the site. So the popup didn' t even show for a while.

Perhaps take them to a page before hand that preloads the image and warns them of a slight delay?

Some people will just think " hmmm not working" and move on. (I nearly did).

Dave




Page: [1] 2 3   next >   >>

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.109375