OMG!I am geek
Gender:
Posts: 58
127 credits Members referred : 0
« Reply #4 on: Mar 02, 2006, 04:53:21 PM »
Sometimes you have to stop and think about your poor readers using DUN. (dial up)
Level 3 up there saves 8 bytes. Imagine if you had a style sheet that had 1,000 objects (selectors, ids, classes) each with 5 declarations. If each declaration would save the surfer 8 bytes, that would equal 40,000 bytes (39 KB).
@ 56K modem speed (oxy-moron) would take 5.7 seconds off the download time.
I think it's worth it.
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 8357
43129 credits Members referred : 3
« Reply #5 on: Mar 02, 2006, 04:57:31 PM »
You can do a small php script that will reduce the size of the file for the server, so you wiil be able to have both the advantages of those methods
OMG!I am geek
Gender:
Posts: 58
127 credits Members referred : 0
« Reply #11 on: Mar 02, 2006, 09:28:02 PM »
Since I don't understand PHP, I don't get it.
I dont' see any css code in there getting replaced or deleted or whatever.
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 8357
43129 credits Members referred : 3
« Reply #12 on: Mar 02, 2006, 09:45:16 PM »
Propably you should stay in our forum for a while, and you'll be able to understand php better
Now about this fragment of code, you just have to edit the line "$file = 'myfile.css'" to whatever your file is (replace the myfile.css to the filename of your css.
Then put this fragment in a php file using a text editor(eg. notepad). Then upload this file to your web server and execute it using your browser(eg. http://yoursite.com/cssremover.php ) .
OMG!I am geek
Gender:
Posts: 58
127 credits Members referred : 0
« Reply #13 on: Mar 02, 2006, 10:08:03 PM »
But what does it do, specifically?
I may not know php, but I understand technical manuals. Explain to me what exactly this script does, and if not obvious after that; why should I impliment this? (if i had a long ass css file that is)
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 8357
43129 credits Members referred : 3
« Reply #14 on: Mar 02, 2006, 10:10:46 PM »
It is opening the file, and removes all the [tab] and [enter] values.
Actually it is almost uselless, but if you have a very big css file it can help as it will reduce the size