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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:09:40+00:00 2026-05-24T01:09:40+00:00

I sniffed some packets off my Google Chrome browser – and I found out

  • 0



I sniffed some packets off my Google Chrome browser – and I found out that:

  1. HTTP requests are send as text – actually sending ‘GET BLABLABLA’
  2. JS is received as text
  3. HTML \ images etc is transferred in some compressed method.

My question is – Why HTTP and JS is transferred without any compression ?

I think that a fully form HTTP request can be compressed to about 3 ~ 5 bytes not including cookies and given that page picking is also compressed (e.g site.com/thisisanicefile.html > site.com/ABC)

Also – why is JS transferred as plain text and not as an array of Tokens (programming languages are converted to an array of Tokens before execution – same goes for scripting languages) ?

Thanks – Mark

  • 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-24T01:09:41+00:00Added an answer on May 24, 2026 at 1:09 am

    For HTTP: well, that’s how the protocol is defined. The protocol is text-based. Makes it simple to implement without having to worry about things like endianness.

    Contents (html, javascript, images, …) can be sent compressed, that’s a matter of encoding “negotiation” between the browser and the server (both need to support it). See the HTTP Compression page on Wikipedia for a run-down on how it works.

    Transferring JavaScript in a pre-processed form (some kind of bytecode) would require that bytecode form to be standardized and implemented in all browsers, and would provide very little benefit. The size difference versus compressed, minified JavaScript would likely not be stellar (after all, you’d be sending the same quantity of information, so a good compression algorithm should make the size of both practically identical).

    You’d also need to compile the JS code before you make it available on your webserver (one more build/deploy task), or compile it on the fly (CPU waste), and that wouldn’t prevent the need for a full-blown source code interpreter on the browser without restricting the language (no more eval / code generation on the frontend if it cannot process JS source).

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

Sidebar

Related Questions

Hello I believe my flash client is losing some packets the server sends, because
I understand that each packet has some header that seems like a random mix
Hi! I have some PDAs (windows mobile) to test my application. One of them
sniffex.c is a program that is based on libpcap , to sniff and display
I have a scraper, which queries different websites. Some of them varyingly use Content-Encoding.
is there a way that an application running at user-mode can communicate with another
I am currently developing a sort of wifi sniffer. To achieve that I use
Background So after fumbling around with wsHttpBinding on my WCF services I find out
First thing you should know is that this worked on Wednesday of last week
Could anyone suggest a good packet sniffer class for c++? Looking for a easy

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.