PDA

View Full Version : Attach All Scripts to one


Skinny Pixel Technologies
12-01-2011, 11:16 AM
I think this might be easy and I read about this before.

What I want to do is like how we attach all css files to one line in the head...but do it for java scripts.

Example:
I have 3 css files controlling one page. I create one css file "launch.css" and attach it to that page.
So the head has one line instead of three:
<link href="SPT-css/launch.css" rel="stylesheet" type="text/css" />

Inside the launch.css file it says:

@import url("structure-content.css");
@import url("menu.css");
@import url("structure-small.css");

This gives the page a cleaner code structure within the head.

I want to do that for the Java files too.

How would I code that?