Announcement: Be excellent to each other.


Caravel Forum : Caravel Boards : The Site : Insert Smilies issues...
New Topic New Poll Post Reply
Poster Message
Casebier
Level: Master Delver
Avatar
Rank Points: 283
Registered: 08-03-2005
IP: Logged
icon Insert Smilies issues... (+1)  
I would like to see one of two options done to help improve load times on the CaravelNet Forum. Well, one would improve server-side, the other would improve client-side.

1. Give an option in our Profile settings to hide Smilies by default. I know this can be done, as I've worked enough in PHP to know most of what can and can't be easily implemented.

2. Preload the Smilies. Preloading is a function that JavaScript handles well, and the pages already have JavaScript in them, so it shouldn't be a problem to implement. Just have the smilies preload with the header.php file and they'll always be loaded up.


____________________________
Casebier
--------------------------------
Revisiting old Project: ZelDROD 1 / ZelDROD RPG (If I can ever find the custom graphic files that I made for it.)
04-25-2007 at 02:45 PM
View Profile Send Private Message to User Show all user's posts Quote Reply
Briareos
Level: Smitemaster
Avatar
Rank Points: 3516
Registered: 08-07-2005
IP: Logged
icon Re: Insert Smilies issues... (+1)  
Casebier wrote:
1. Give an option in our Profile settings to hide Smilies by default. I know this can be done, as I've worked enough in PHP to know most of what can and can't be easily implemented.
Well, the forum could just skip the step where it replaces the smiley tags with actual images, but is this really worth it? Also, "Insert smilies issues" reads to me like you're actually having issues when inserting Smilies while posting, where this wouldn't help anyway...

2. Preload the Smilies. Preloading is a function that JavaScript handles well, and the pages already have JavaScript in them, so it shouldn't be a problem to implement. Just have the smilies preload with the header.php file and they'll always be loaded up.
But why exactly? After all, the first thing that gets loaded is the page itself, while images only start loading when they get referenced first. (At least that's the earlies possible time; what happens exactly depends on your browser - and I thought that browsers where you can't use the page unless it's fully loaded were a thing of the distant past already...)

Unless you've totally disabled any caching in your browser, this should happen only once unless the smiley graphics got evicted from the browser side cache. Not to mention that preloading all smileys is actually wasteful if only a handful of them are used on the page, and the extra requests might even slow down loading the rest of the page.

So where's the problem if the smiley images take a few seconds to appear before they're cached? I think the text is more important, and that is already loading before the smileys even get into the picture...

So if you are having a specific problem with the smileys, would you mind telling us what it is?

np: Nine Horses - Darkest Birds (Snow Borne Sorrow)

____________________________
"I'm not anti-anything, I'm anti-everything, it fits better." - Sole
R.I.P. Robert Feldhoff (1962-2009) :(
04-25-2007 at 05:01 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
Casebier
Level: Master Delver
Avatar
Rank Points: 283
Registered: 08-03-2005
IP: Logged
icon Re: Insert Smilies issues... (0)  
Well, at the moment I can't get the problem to show up, otherwise I'd screenshot it. I'll try to get a screenshot the next time it happens, as it is difficult to explain what's happening.

____________________________
Casebier
--------------------------------
Revisiting old Project: ZelDROD 1 / ZelDROD RPG (If I can ever find the custom graphic files that I made for it.)
04-25-2007 at 08:22 PM
View Profile Send Private Message to User Show all user's posts Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5106
Registered: 02-04-2003
IP: Logged
icon Re: Insert Smilies issues... (0)  
Casebier wrote:
Well, at the moment I can't get the problem to show up, otherwise I'd screenshot it. I'll try to get a screenshot the next time it happens, as it is difficult to explain what's happening.
I get a weird display when I try to post when the smilies are loading slowly. All the text I'm writing looks like vertical bars until the smilies are done loading. (I've got whiz-bang connection speed, so I don't know why they load slowly like that for me.)

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.
04-25-2007 at 11:58 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
Kevin_P86
Level: Smitemaster
Avatar
Rank Points: 535
Registered: 06-28-2005
IP: Logged
icon Re: Insert Smilies issues... (0)  
mrimer wrote:
Casebier wrote:
Well, at the moment I can't get the problem to show up, otherwise I'd screenshot it. I'll try to get a screenshot the next time it happens, as it is difficult to explain what's happening.
I get a weird display when I try to post when the smilies are loading slowly. All the text I'm writing looks like vertical bars until the smilies are done loading. (I've got whiz-bang connection speed, so I don't know why they load slowly like that for me.)
Yes, it's exactly the same for me.

____________________________
+++++[>+++++<-]>[>+++>++++>+++++<<<-]>.>+.>-------.<++++.+++++.
04-26-2007 at 02:03 AM
View Profile Send Private Message to User Send Email to User Show all user's posts This architect's holds Quote Reply
Tahnan
Level: Smitemaster
Avatar
Rank Points: 2460
Registered: 11-14-2005
IP: Logged
icon Re: Insert Smilies issues... (+1)  
mrimer wrote:
I get a weird display when I try to post when the smilies are loading slowly. All the text I'm writing looks like vertical bars until the smilies are done loading.
Strange; I've never h|| |||| |||||||
04-26-2007 at 02:08 AM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
NiroZ
Level: Smitemaster
Rank Points: 1302
Registered: 02-12-2006
IP: Logged
icon Re: Insert Smilies issues... (0)  
Tahnan wrote:
mrimer wrote:
I get a weird display when I try to post when the smilies are loading slowly. All the text I'm writing looks like vertical bars until the smilies are done loading.
Strange; I've never h|| |||| |||||||
Should I be worried if I can read that?

Anyway, this has happened to me, but only in IE7 when the computer was running slow.
04-26-2007 at 04:18 AM
View Profile Send Private Message to User Send Email to User Show all user's posts This architect's holds Quote Reply
Briareos
Level: Smitemaster
Avatar
Rank Points: 3516
Registered: 08-07-2005
IP: Logged
icon Re: Insert Smilies issues... (0)  
mrimer wrote:
All the text I'm writing looks like vertical bars until the smilies are done loading. (I've got whiz-bang connection speed, so I don't know why they load slowly like that for me.)
Uhhh, guys - which browser and which OS are you using? Because that definitely has got to be a client-side browser problem...

(Me, I'm using Firefox 1.5.0.11 on Windows XP SP2 and never experienced something like that...)

____________________________
"I'm not anti-anything, I'm anti-everything, it fits better." - Sole
R.I.P. Robert Feldhoff (1962-2009) :(
04-26-2007 at 08:31 AM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
eytanz
Level: Smitemaster
Avatar
Rank Points: 2708
Registered: 02-05-2003
IP: Logged
icon Re: Insert Smilies issues... (0)  
That occasionally happens to me. Firefox 2.0.0.3, Windows XP SP2.

____________________________
I got my avatar back! Yay!

[Last edited by eytanz at 04-26-2007 12:45 PM]
04-26-2007 at 12:45 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
Casebier
Level: Master Delver
Avatar
Rank Points: 283
Registered: 08-03-2005
IP: Logged
icon Re: Insert Smilies issues... (+1)  
Yes, that is exactly my problem. The spacing for the form isn't correct until all of the graphics load, either, so maybe the default graphic sizes aren't being set?

Looking at the page's source code, I found part of the problem. None of the images have their height or width properties set. You could also clean up the code if you applied a "border-style:none;" style to <img> tags.

IE7, WinXP Media Center SP2

____________________________
Casebier
--------------------------------
Revisiting old Project: ZelDROD 1 / ZelDROD RPG (If I can ever find the custom graphic files that I made for it.)

[Last edited by Casebier at 04-26-2007 10:43 PM]
04-26-2007 at 10:42 PM
View Profile Send Private Message to User Show all user's posts Quote Reply
New Topic New Poll Post Reply
Caravel Forum : Caravel Boards : The Site : Insert Smilies issues...
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.