By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,940 Members | 1,300 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,940 IT Pros & Developers. It's quick & easy.

large script

P: n/a
Hi Folk

I am an absolute beginner....

I have a script of 30Kb, which is mainly comments (i.e. //..... and /*
......*/)

Should I strip these out and make the script 10Kb (I use it on every page in
my site)?

If so, how do I do that using a regular expression in Notepad2 (amazing
editor!!!) (sorry, but I have no idea)
Thank you

- Nicolaas
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
NC
windandwaves wrote:

I have a script of 30Kb, which is mainly comments (i.e. //..... and /* .....*/)
30 kb is NOT a large script. Especially given the fact that it's
mostly comments.
Should I strip these out and make the script 10Kb (I use it on every
page in my site)?


You don't have to if you don't want to...

Cheers,
NC

Jul 17 '05 #2

P: n/a
NC wrote:
windandwaves wrote:

I have a script of 30Kb, which is mainly comments (i.e. //..... and
/* .....*/)


30 kb is NOT a large script. Especially given the fact that it's
mostly comments.
Should I strip these out and make the script 10Kb (I use it on every
page in my site)?


You don't have to if you don't want to...

Cheers,
NC


Thank you for your reply

Is it still the case if each page accesses it (e.g include_once({30kb}...))
? I have an average of 500 visitors per day so at peak times, it may get
busy. Each page requires about 100Kb of script on average, so I thought it
may make a little difference if I take out 20Kb per hit.

Let me know if I am overly excited about speeding it up...

Thank you once moer for your reply
- Nicolaas
Jul 17 '05 #3

P: n/a
I noticed that Message-ID: <42********@clear.net.nz> from windandwaves
contained the following:
Is it still the case if each page accesses it (e.g include_once({30kb}...))
? I have an average of 500 visitors per day so at peak times, it may get
busy. Each page requires about 100Kb of script on average, so I thought it
may make a little difference if I take out 20Kb per hit.


But it won't be /serving/ that data, will it?
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #4

P: n/a
Geoff Berrow wrote:
I noticed that Message-ID: <42********@clear.net.nz> from windandwaves
contained the following:
Is it still the case if each page accesses it (e.g
include_once({30kb}...)) ? I have an average of 500 visitors per
day so at peak times, it may get busy. Each page requires about
100Kb of script on average, so I thought it may make a little
difference if I take out 20Kb per hit.


But it won't be /serving/ that data, will it?


No, actual page sizes can be between 5Kb and 50Kb (and more for some...)

Nicolaas
Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.