Author |
Topic |
|
kyodai
New Member
Azerbaijan
74 Posts |
Posted - 03 March 2011 : 07:44:36
|
Well with around 2 GB of pure asp traffic a day you reach that state where you think about saving some bandwidth to improve performance.
Obviously shortening page filenames, parameters and killing unnecessary blanksspace/tabs will not be a lot, so the only thing left that would really help is CSS.
I know that "Speedball" or "Speedball II" mods used CSS to save bandwidth, but unfortunately all links are dead. I wanted to take a peek into this to see how it was implemented.
Does anyone here still have speedball realted files or know a mirror? Or any other tips about snitz and CSS? |
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 03 March 2011 : 13:49:08
|
Even then that version used a much older code base - aside from the CSS, the only other changes were removing all the vbNewLine's that were used to make the code easier to read (saves bandwidth, made trouble-shooting worlds harder until [IE8's dev bar|Firebug|Chrome's dev tools]), and any extraneous whitespace that was used to indent the generated HTML was deleted.
The latter two (removing whitespace and un-needed vbNewLine's {not all are un-needed]) can be taken care of in fairly short order.
I've been trying to work on a CSS'd version of the current code base, but the project has stalled. I've been swamped at work for some time now and almost all of my side projects have suffered. =/ |
|
|
kyodai
New Member
Azerbaijan
74 Posts |
Posted - 03 March 2011 : 16:36:45
|
i already removed all unnecessary spaces, tabs and vbNewline, but thats not really saving a lot. I can't implement Speedball II anyways as i have so many customizations its impossible. I just wanted to take a look at it how it's done as i would like to mimic that at least for default,forum and topic as these 3 pages consume like 98% of my bandwidth. If anyone has speedball or any other CSS related snitz mod/hack then i would love to look at it, but so far all links i found are dead. |
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 03 March 2011 : 20:15:04
|
How much bandwidth are we talking about and what kind of page weight? Which pages are we talking about? There may be some other temporary changes to at least hold you over until someone can dig up a link or two.
I suspect I still have a copy of the Speedball code around somewhere, but its been a long while since I last worked with it - as I mentioned, it uses a very old version of Snitz and was never patched in step with the main code after 3.4.04 or somewhere thereabouts. |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 04 March 2011 : 02:28:49
|
are we talking about the site linked as your home site kyodai ? if so your bandwidth problem is image related not snitz code related, you have a 150kb background image and lots of large images in your topics that are also pretty large
when I opened a random topic, it sent me > 900Kb of images the actual topic page itself is only about 70Kb |
MVC .net dev/test site | MVC .net running on Raspberry Pi |
|
|
kyodai
New Member
Azerbaijan
74 Posts |
Posted - 04 March 2011 : 07:27:04
|
The current bandwidth use is around 50 GB pure asp (HTML) per month. I don't care how old the speedball implementation is, i just wanna look at how it's approached as a basic example, with my many mods i can't just roll it out anyways.
Yeah it's my main page - hiddenbelow.com. I am not talking about the images, i don't really have issues with these. I could disable the background, but as the images are cached by all modern browsers they aren't really a problem, mainly it's the default.asp, topic.asp and forum.asp that i would like to implement CSS on as from my estimation these could save prolly around 40% i guess with css. |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 04 March 2011 : 11:05:34
|
quote: Originally posted by kyodai Obviously shortening page filenames, parameters and killing unnecessary blanksspace/tabs will not be a lot ...
You'd be surprised just how much you can actually save with those tricks
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
kyodai
New Member
Azerbaijan
74 Posts |
Posted - 04 March 2011 : 11:18:11
|
No I'm actually not surprised as i already did it nearly to the max. I mean yeah reducing size from like 140K to 137 K is better than nothing in the long run, but i think with CSS i can save significantly more bandwidth and especially speed up loading the page. Really noone having a copy of speedball or any other CSS related mod around? Anything would help... |
|
|
cripto9t
Average Member
USA
881 Posts |
Posted - 04 March 2011 : 13:36:08
|
There's a private message mod converted to Speedball at Snitz Bitz. It doesn't show much except for the simple class names.
I experimented with converting snitz to css a long while back. It won't take long to knock those 3 pages out, but the first thing you have to do is change the font size to something css can use like pixels or points. then define the font family, size and color in the body.
Jobs half over right there . Add the background colors to the <tr> tags instead of the <td> tags. |
_-/Cripto9t\-_ |
|
|
kyodai
New Member
Azerbaijan
74 Posts |
Posted - 04 March 2011 : 18:53:46
|
Do you still have your CSS experiment? I'd really like to take a look at least on one page and the matching css file. I really just have zero experience with this and it would save me a lot of studying. The font tip sounds good so far but i lack the knowledge to practically make anything out of it yet... =/ |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 05 March 2011 : 02:21:55
|
quote: Originally posted by kyodai
The current bandwidth use is around 50 GB pure asp (HTML) per month. I don't care how old the speedball implementation is, i just wanna look at how it's approached as a basic example, with my many mods i can't just roll it out anyways.
Yeah it's my main page - hiddenbelow.com. I am not talking about the images, i don't really have issues with these. I could disable the background, but as the images are cached by all modern browsers they aren't really a problem, mainly it's the default.asp, topic.asp and forum.asp that i would like to implement CSS on as from my estimation these could save prolly around 40% i guess with css.
image smay be cached, but every time you open a different topic you get a whole raft of new images in posts and as peoples avatars and some of them are pretty large, turning the snitz code to css would reduce the size of the html, but it would not say 40% of your bandwith, since > 40% of it is from images not html
You could ask your host to enable compression on your site, if you turn that on it would make a huge difference as everything would be compressed for reaching the users browser. |
MVC .net dev/test site | MVC .net running on Raspberry Pi |
|
|
kyodai
New Member
Azerbaijan
74 Posts |
Posted - 05 March 2011 : 15:36:27
|
Removing the images is not an option. Most of our skins do not have a background image but i know the default one has one. I want CSS as it does NOT affect the look and feel of the site, it simply saves bandwidth and so i think it is reasonable for EVERYONE to think about it. I know about compression but unfortunately it is not available on my host. |
|
|
Podge
Support Moderator
Ireland
3775 Posts |
|
|
Topic |
|