472,785 Members | 1,132 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,785 software developers and data experts.

large script

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
4 1132
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: writeson | last post by:
Hi all, I helped one of my co-workers put together an XMLRPC Python script that allowed him to get database data from remote machines. This was done because the source of the data could be...
3
by: WinstonSmith | last post by:
Hello everyone, I got a problem about GC when creating large fields (some MB), set reference to null and call GC.Collect. Not all virtual mem is released. Situation improved in .net 1.1 but not...
55
by: Jonas Smithson | last post by:
I've seen a few attractive multi-column sites whose geometry is based on pure CSS-P, but they're what you might call "code afficionado" sites, where the subject matter of the site is "coding...
1
by: Christopher Benson-Manica | last post by:
We have a fairly large (1500 line) .js file that contains script that most of our pages use. My personal opinion is that this is not easy to maintain, but others are concerned that with the script...
2
by: marco.avidano | last post by:
I'm asking: for the PHP parser, it's better to create one large file with all the code inside or a lot of small files? Can a large file slow down the execution of the script?
2
by: hungryblank | last post by:
I'm having troubles with a script that uses the get_payload function. My script just works perfectly if I use it with attachment up to 8 Mb. If the attachment are more than 8 Mb large, the script...
3
by: RC | last post by:
Dear Dudes, I post this in multiple groups for opening brain storm. Sometime I need to query the data from database server then display them into user's browser in HTML <table>. But if the...
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
3
by: neovantage | last post by:
Hey all, I need to upload files which are large in size. Though there are 2 fuunction which set the max upload file size and increasing the execution time of the script at run time but is there any...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.