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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:05:39+00:00 2026-06-06T06:05:39+00:00

I am trying out require.js and only include on js file at my main

  • 0

I am trying out require.js and only include on js file at my main page. That main.js loads loads other scripts.

I am testing the performance of my site with yslow. It says that my page has 15 js files and I should try combining them into one. Isn’t this the the purpose of require.js? That I shouldn’t have to combine all my js into one large file?

  • 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-06-06T06:05:41+00:00Added an answer on June 6, 2026 at 6:05 am

    Well, the idea of RequireJS is to build your scripts into modules (small parts). While doing that, you will notice that you are going to be dealing with many modules and thus many files.

    To solve the “many files” problem, RequireJS has an optimizer.

    RequireJS has an optimization tool that does the following

    • Combines related scripts together into build layers and minifies them via UglifyJS (the default) or Closure Compiler (an option when using Java).
    • Optimizes CSS by inlining CSS files referenced by @import and removing comments.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to figure out how to layout my database for a site
I'm trying to implement a login system that only supports login through a Google
Trying out the examples found on pleac.sf.net , I'm not able to get an
Im trying out an example with EJB Session Beans. I wanna see the differences
Am trying out an example app using UITableView. The upper (nearly) half of the
While trying out an experimental UINavigationController-based iPhone application, I ran into a problem when
After trying out VS2010b2 also my VS2008 installation changes the versions of solution and
Just trying out Hibernate (with Annotations) and I'm having problems with my mappings. I
im trying out paypals html api where you specify price, item_name, customer information and
I am trying out the php client for IronMQ. I'm trying to make work

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.