Linked Questions
13 questions linked to/from Multiple javascript/css files: best practices?
66
votes
7
answers
74k
views
One big javascript file or multiple smaller files? [duplicate]
Ok, so I have a reasonable size project, where I'm using jquery backbone and a couple of other javascript libraries. I was wondering if I should have one file for my javascript libraries and another ...
51
votes
11
answers
44k
views
Put javascript in one .js file or break it out into multiple .js files?
My web application uses jQuery and some jQuery plugins (e.g. validation, autocomplete). I was wondering if I should stick them into one .js file so that it could be cached more easily, or break them ...
23
votes
7
answers
21k
views
How do you organize your Javascript code? [closed]
When I first started with Javascript, I usually just put whatever I needed into functions and called them when I needed them. That was then.
Now, as I am building more and more complex web ...
DLS's user avatar
- 5,517
10
votes
7
answers
7k
views
CSS on a separate file or not?
Which is a better option: to store CSS on a separate file or on the same page?
Let's forget the fact that changing the CSS on a file makes it to apply all HTML pages directly. I am using dynamic ...
14
votes
4
answers
12k
views
Merging multiple javascript files
I've read that merging several multiple javascript files into a single file improves performance, is that true?
If so, is there an easy and error-free way of merging them, or perhaps an online-tool ...
3
votes
4
answers
512
views
Using one css/js file
I've read that to optimize page load, you should use one css and one js file because the browser loads them one by one and then it slows down the page load.
And I'm sure that I don't know what I'm ...
2
votes
3
answers
2k
views
is it a good idea to put all javascript file's content into one file to reduce server request and keep at bottom to increase performance?
I use simple javascripts, jquery library and many plugins , should i make one file for all if yes then what we need to "just copy and paste and code from all file into one in needed order" or any ...
2
votes
6
answers
773
views
Including loads of css files and Javascript file - how do I optimize
Duplicate: Multiple javascript/css files: best practices?
Hi guys, my application is almost done but the thing is that I've noticed that I'm including a lot of external javascript files and css. I'm ...
2
votes
4
answers
1k
views
Which headers should I use for serving static content?
I am gzipping my static Javascript and CSS files using PHP. When the original file is requested, the server sends the Last-Modified and ETag headers. I'm not sending these with PHP just yet. I've also ...
2
votes
5
answers
190
views
Why people always encourage single js for a website?
I read some website development materials on the Web and every time a person is asking for the organization of a website's js, css, html and php files, people suggest single js for the whole website. ...
0
votes
0
answers
430
views
combining multiple js files into 1 single file
I am trying to combine all my js files into 1 js file.
Everything is working perfectly until I'm trying to copy and paste the content of the jQuery 2.0.2 file.
I can make it work via JSMin but I ...
3
votes
1
answer
293
views
What are some good techniques to organize JS includes for a large website?
Should each page have its own .js, with reusable features (live search, drop-down menus) being included in some kind of all.js for each page? Not sure what the best way to structure this is. Thanks ...
1
vote
2
answers
69
views
Where should I be putting css [closed]
I'm creating a website, and the styles change frequently between pages. So what I have is images of pages that have the same header, same footer, and out-of-whack body styles. I started with the ...
Patrick's user avatar
- 2,587