473,412 Members | 2,051 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Multiple <script type="text/javascript" src="mys.js"></script> OK?

joe
Is it OK to have multiple:

<script type="text/javascript" src="funcs1.js"></script>
<script type="text/javascript" src="funcs2.js"></script>
<script type="text/javascript" src="funcs3.js"></script>

?

And I need to use similarly multiple CSS:

<link href="blah1.css" rel="stylesheet" type="text/css" />
<link href="blah2.css" rel="stylesheet" type="text/css" />

Is that OK too?
Jun 27 '08 #1
3 7792
On Apr 15, 1:49 pm, joe <m...@invalid.comwrote:
Is it OK to have multiple:

<script type="text/javascript" src="funcs1.js"></script>
<script type="text/javascript" src="funcs2.js"></script>
<script type="text/javascript" src="funcs3.js"></script>

?

And I need to use similarly multiple CSS:

<link href="blah1.css" rel="stylesheet" type="text/css" />
<link href="blah2.css" rel="stylesheet" type="text/css" />

Is that OK too?
That's fine.
Jun 27 '08 #2
On Apr 15, 1:49*pm, joe <m...@invalid.comwrote:
Is it OK to have multiple:

<script type="text/javascript" src="funcs1.js"></script>
<script type="text/javascript" src="funcs2.js"></script>
<script type="text/javascript" src="funcs3.js"></script>

?

And I need to use similarly multiple CSS:

<link href="blah1.css" rel="stylesheet" type="text/css" />
<link href="blah2.css" rel="stylesheet" type="text/css" />

Is that OK too?
Sure. Just make sure that your multiple scripts don't share any
'global' variables, unless that's your intention.
Jun 27 '08 #3
On Tue, 15 Apr 2008 20:49:53 +0300, joe wrote:
Is it OK to have multiple:

<script type="text/javascript" src="funcs1.js"></script<script
type="text/javascript" src="funcs2.js"></script<script
type="text/javascript" src="funcs3.js"></script>

?

And I need to use similarly multiple CSS:

<link href="blah1.css" rel="stylesheet" type="text/css" /<link
href="blah2.css" rel="stylesheet" type="text/css" />

Is that OK too?
As others have said, thats fine.

There is a [small] performance hit for everything on the page that needs
to be downloaded. This includes all graphics, all style sheets, all
javascript files. If you ever run your document through one of those
speed-test programs, it may complain.

In reality, I don't worry about it... but I don't go overboard either.
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Donald Firesmith | last post by:
I am having trouble having Google Adsense code stored in XSL converted properly into HTML. The <> unfortunately become &lt; and &gt; and then no longer work. XSL code is: <script...
6
by: Saqib Ali | last post by:
I have created a slider using Javascript and html tables that generally works very well. As you move the "knob" to the right, a numeric value in an adjactent <INPUT type="text"> tag increases....
9
by: David D. | last post by:
Does the file extension matter when including a JavaScript file in an HTML page? Normally, one would include a JavaScript file in an HTML page using <script src="foo.JS" type="text/javascript">...
10
by: Blue® | last post by:
I would like to call the content of content.htm (containing only HTML codes) into index.htm. This is usually done by renaming index.htm to index.shtml and use this tag: <!--#include...
23
by: Loony | last post by:
I have got a code like this in HTML section in ASP file which includes javascript file! The script works under MS IE but doesn't with Firefox! Can anybody tell me what is wrong? <HTML>...
3
by: Oliver Saunders | last post by:
can someone please tell me why everytime i try and pass this to a js function i can't seem to use it for anything: <html> <head> <script language="javascript"> function a(fromlink) {...
2
by: yer darn tootin | last post by:
Here's the scenario: I have a javascript function taking the contents of a datalist ( content from a SQL db ) and opening it in a new window to allow the user to print. The pop-up window...
22
by: stephen | last post by:
I have created an order form that users javascript to create a new html document when the customers clicks the "print page" button. Once the new document has been created it then prints the...
4
by: Jon | last post by:
Hi, I used XslCompiledTransform with the following Xsl file. The <xsl:text disable-output-escaping="yes"does not work when using XslCompiledTransform to do the trnasform (namely the output...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.