quote:
Originally posted by ChangeAgent
So when you say loads the page with the 100+ tiles, are you talking about the straight XML render or the HTML render?
Because the XML shouldn't be THAT slow... but asking Xbox.com to load up those tiles can sometimes cause delay... I see this all the time when I am working with any URLs that come from xbox.com... user tiles or game tiles.
I am taking about the HTML rendered image. You are correct if I grab all the XML data and store it in my array it takes a matter of seconds and the script is done. However if I decide to use that XML data (the URL to the image) and place it in a <IMG> tag is then slows EVERYTHING down.
It seems like my script is waiting for each image to download before it continues on. It makes the script time jump up greatly however when I view V360 leaderboards I can see the images are loading after the script runs. With my page all the images show up at once, since the script waited for each image to download.
I am trying to figure out how to do it the way this site does. right now I am just making my ASP script write the HTML code via Response.write command with a For....Next statement.
Something like this:
For h=0 to (totalusercount-1)
Response.write ("<td class=""rank""> #" & ranknum & "</td>
<td><img width=""32"" class=""tile"" src=""" & allData(5,h)
& """></td> <td><nobr>" &
"<a href = ""http://www.360voice.com/tag/" & allData(1,h) & """>"
& allData(1,h) & "</a></nobr></td> <td class=""active"">"
& allData(0,h) & "</td> <td> <a href=""http://www.360voice.com/challenge/"
& allData(3,h) & """ >" & allData(2,h) & "</a></td> <td>" &
allData(4,h) & "</td> </tr>")
This writes one line in my table for each user. The allData(5) holds the URL to the user tile. If I remove the AllData(5) from my script it loads up 10 times quicker. This proves that the loading of the GT tile slows everything down and not the storing of the XML data (since it is still being stored).