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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:33:11+00:00 2026-05-17T01:33:11+00:00

I have been working on a jquery plugin that uses a HTML5 audio player

  • 0

I have been working on a jquery plugin that uses a HTML5 audio player () to play back mp3’s. I noticed that in various browsers multiple GET requests were made for the same MP3 file when the audio player was loaded.

I created a simple standalone HTML file to test this out.

<html>
<head></head>

<body>
    <audio controls src="http://localhost:5000/files/one.mp3" type="audio/mp3"></audio>
<body>  
<html>

When opening the page in OS X Safari 5.0.1, I saw the following logs from my web server (3 GET requests):

>> Thin web server (v1.2.7 codename No Hup)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:5000, CTRL+C to stop
127.0.0.1 - - [17/Aug/2010 11:09:32] "GET /one.mp3 HTTP/1.1" 200 4030432
0.0022
127.0.0.1 - - [17/Aug/2010 11:09:32] "GET /one.mp3 HTTP/1.1" 200 4030432
0.0012
127.0.0.1 - - [17/Aug/2010 11:09:32] "GET /one.mp3 HTTP/1.1" 200 4030432
0.0010

Note, the requests are for “GET /one.mp3” and not “GET /files/one.mp3” because my Thin web server is running off a prefix of /files.

When opening the same HTML file in OS X Chrome, I saw 2 GET requests for /one.mp3.

When opening the same HTML file in OS X Opera, I saw 1 GET request for /one.mp3.

What is the reason for the multiple GET requests for a single files? The bandwidth on my server is limited and I throttle connections at 75KB/s (thats HTTP connection, not user). My worry is if Safari is making 3 HTTP connections to download (stream) a single mp3 file, it will reduce the number of concurrent users my server can handle.

Is this something I should be worried about in terms of performance/bandwidth? Also, I am curious as to why certain browsers make multiple requests for the same file, while other do not.

  • 1 1 Answer
  • 2 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-17T01:33:11+00:00Added an answer on May 17, 2026 at 1:33 am

    Is it possible that Safari is making additional requests to fetch metadata? Try different values of the preload attribute to see if it makes any difference:

    • preload=”none” – no data is prefetched (shouldn’t see any GETs)
    • preload=”metadata” – basic metadata like duration, bit rate, sample rate, etc. is prefetched (should see one GET)
    • preload=”auto” – the whole file is prefetched (may see multiple GETs)

    See http://dev.w3.org/html5/spec/Overview.html#attr-media-preload for a full description of this attribute.

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

Sidebar

Related Questions

I have been working on a jQuery plugin that involves CSS Shapes . The
I have been working for a client that is using the tristate jquery plugin
I am currently working on rails3 application that uses jQuery. I have a javascript
I have been using jquery validate plugin http://bassistance.de/jquery-plugins/jquery-plugin-validation/ . It has been working successfully,
I have a slideshow that uses the Jquery cycle plugin. example of slideshow is
I have been working with Gilbert Pellegrom JQuery Currency plugin, to convert prices on
Background I have been using the JQuery UI plugin for creating a dialog that
I have been working with jQuery mobile 1.0.1. I have a page which drills
Alright have been working to switch to jQuery 1.7's new and improved .on() function
I'm working on a asp.net mvc2 app. I have been using jquery to do

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.