Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 537965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:58:57+00:00 2026-05-13T09:58:57+00:00

I use simple javascripts, jquery library and many plugins , should i make one

  • 0

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 thing else need to be considerd.

as stated here http://developer.yahoo.com/performance/rules.html#num_http

Combined files are a way to reduce the
number of HTTP requests by combining
all scripts into a single script, and
similarly combining all CSS into a
single stylesheet. Combining files is
more challenging when the scripts and
stylesheets vary from page to page,
but making this part of your release
process improves response times.

and this http://developer.yahoo.com/performance/rules.html#js_bottom

The problem caused by scripts is that
they block parallel downloads. The
HTTP/1.1 specification suggests that
browsers download no more than two
components in parallel per hostname.
If you serve your images from multiple
hostnames, you can get more than two
downloads to occur in parallel. While
a script is downloading, however, the
browser won’t start any other
downloads, even on different hostname

It these are god practices then

How to combine multiple javascript ito one without getting any conflict?

Is it just same as i copy all css code from all files into one or it’s tricky?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T09:58:57+00:00Added an answer on May 13, 2026 at 9:58 am

    For each file you have, there are two steps :

    • send the HTTP request to the server
    • download the content of the file

    If you reduce the number of files by combining them, you will reduce the number of HTTP requests — which means your page will load a bit faster ;; which is good for your users ; which is why it’s recommended.

    But this will make debuggig harder, which is why it’s recommended to do this only on your production environment, and not on the development platform — hence the “making this part of your release process” part.

    Of course, the process of combining your files content should not be done manually — else, you’ll have to re-do it each time there’s a modification made ; it should be fully automated, and done at the time you are building the archive that is going to be deployed on your production server.

    Also :

    • You might gain a bit on the “dowload” part if using minification
    • You will gain a lot more on the “download” part if using compression (see mod_deflate, for Apache)

    Ideally, you can use all three solutions, btw 😉

    Placing the <script> tags at the end of your page will :

    • allow the content of the page (which generall is what matters the most) to be displayed faster
    • but will only work if your page/JS is coded “correctly” (i.e. unobstrusive JS, not using JS “hardcoded” in the HTML page)

    This can help too — but might be a bit harder to achieve than combinaison+minification+compression.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 306k
  • Answers 306k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer you probably want to do this with ftp If there… May 13, 2026 at 9:19 pm
  • Editorial Team
    Editorial Team added an answer You can retain the window with CFRetain, or use NSGarbageCollector's… May 13, 2026 at 9:19 pm
  • Editorial Team
    Editorial Team added an answer [ and ] are special characters in a regex. They… May 13, 2026 at 9:19 pm

Related Questions

Is there any reasons why PHP's json_encode function does not escape all JSON control
I have a problem with jquery not loaded in an asp user control. I
Now that RC1 is out I need to decide once and for all whether
I'm working with a web service that will give me values like: var text
I am creating a Vista Gadget and I haven't been able to get JQuery

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.