Linked Questions

66 votes
7 answers
74k views

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

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 ...
Kevin Pang's user avatar
  • 41.5k
23 votes
7 answers
21k views

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

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 ...
Tower's user avatar
  • 103k
14 votes
4 answers
12k views

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 ...
eozzy's user avatar
  • 69.4k
3 votes
4 answers
512 views

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 ...
pufAmuf's user avatar
  • 7,851
2 votes
3 answers
2k views

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

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 ...
Ali's user avatar
  • 7,493
2 votes
4 answers
1k views

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

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. ...
Steve's user avatar
  • 5,113
0 votes
0 answers
430 views

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 ...
user2510306's user avatar
3 votes
1 answer
293 views

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

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