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 40903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:05:47+00:00 2026-05-10T15:05:47+00:00

This concept is a new one for me — I first came across it

  • 0

This concept is a new one for me — I first came across it at the YUI dependency configurator. Basically, instead of having multiple requests for many files, the files are chained into one http request to cut down on page load time.

Anyone know how to implement this on a LAMP stack? (I saw a similar question was asked already, but it seems to be ASP specific.

Thanks!

Update: Both answers are helpful…(my rep isn’t high enough to comment yet so I’m adding some parting thoughts here). I also came across another blog post with PHP-specific examples that might be useful. David’s build answer, though, is making me consider a different approach. Thanks, David!

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-10T15:05:48+00:00Added an answer on May 10, 2026 at 3:05 pm

    There are various ways, the two most obvious would be:

    1. Build a tool like YUI which builds a bespoke, unique version based on the components you ticked as required so that you can still serve the file as static. MooTools and jQuery UI all provide package-builders like this when you download their package to give you the most streamlined and effecient library possible. I’m sure a generic all purpose tool exists out there.
    2. Create a simple Perl/PHP/Python/Ruby script that serves a bunch of JavaScript files based on the request. So ‘onerequest.js?load=ui&load=effects’ would go to a PHP script that loads in the files and serves them with the correct content-type. There are many examples of this but personally I’m not a fan.

    I prefer not to serve static files through any sort of script, but I also like to develop my code with 10 or so seperate small class files without the cost of 10 HTTP requests. So I came up with a custom build process that combines all the most common classes and functions and then minifies them into a single file like project.min.js and have a condition in all my views/templates that includes this file on production.

    Edit – The ‘custom build process’ is actually an extremely simple perl script. It reads in each of the files that I’ve passed as arguments and writes them to a new file, optionally passing the entire thing through JSMIN (available in all your favourite languages) automatically.

    At the command like it looks like:

    perl build-project-master.pl core.js class1.js etc.js /path/to/live/js/file.js 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In ASP.net MVC4 there's this 'new' concept of a web API for exposing CRUD
As i am new to this concept called sql injections and javascript injections into
This question is similar in concept to this one , except I see I
So I'm basically brand new to the concept of BI, and I've inherited an
I'm new to this concept so I might be wrong in calling it a
I am looking to use this concept in one of my upcoming project. More
First, a caveat: I'm rather new to the concepts behind document databases, so this
This concept seems to trouble me. Why does an NSError object need its pointer
I can see some potential difficulties with this concept but the idea is: I
I am getting really confused with this concept: If I want to implement a

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.