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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T19:50:35+00:00 2026-05-18T19:50:35+00:00

all. I am required to build a website with each page under 130kb. I

  • 0

all. I am required to build a website with each page under 130kb. I know that JQuery 1.4.4 is ~28kb when it’s g-zipped, but it’s 77kb minified, which is just too much for this particular assignment. I have already built the entire site using JQuery in one implementation or another on each page, so scrapping it would mean days of wasted time.

With that in mind,

1) Can I add content headers to a javascript file to add “Content-Encoding: gzip” without modifying config files on the server end? I’m uploading them to the university server, but I don’t have access to the configuration. From the response header, the server is: Apache/1.3.26 (UnitedLinux) mod_ssl/2.8.10 OpenSSL/0.9.6g PHP/4.2.2 mod_perl/1.27

2) From the phpinfo file, I know that ZLIB compression is enabled, but “zlib.output_compression” is not.

3) I realize this can be done using .htaccess. However, I’d like to do it any other way, if possible, since I don’t want the school thinking I’m trying to modify their server configuration.

4) Will XHR’s setrequestheader method work here, or is that only good for asynchronous files?

I know this is short notice and all, but my Final presentation is tomorrow, and I’ll lose a ton of points if my site is over the size limit. Any help would be much appreciated!

  • 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-18T19:50:36+00:00Added an answer on May 18, 2026 at 7:50 pm

    You have two options

    1. Use jquery hosted somewhere else
      that supports gzip. The file is here
      that you need to include
      http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js
      This gives you a lot more advantages
      such as parallel downloading of
      files and quicker page load times.

    2. Other options is to use PHP code to
      zip the jquery js and return it.
      Here is an example
      http://www.lateralcode.com/gzip-files-with-htaccess-and-php/

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

Sidebar

Related Questions

I recently had to run a job that required all the mappers to finish
VS 2003 .NET 1.1 I know when I build a website into a DLL
Let's say you have a website that lets you build an account with up
I have built a bulk email sending website for a client that is required
I would like to build a website that has some elements of a social
I am able to build webkit on windows7 under Visual Studio 2008..But for the
I have a need to build a website and several DLLs that it references
I'm having to build a directory type website that will be fairly feature intensive
I have been working on a build script for a website that we have.
I'm trying to integrate Video4Linux in my managed application. Indeed I've declared all required

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.