Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

jwplayer.js is huge


We're looking at finally getting around to using our v5 pro license player... with the html5 integration...

I was shocked to see that jwplayer.js was nearly 100k
Are you including a javascript framework with that or something? Why is it so massive?

I realize we're talking about broadband days, and they'll be playing a media file far larger than that, but we still try to keep our pages as optimized as possible for LOADING. Take into account all the other scripts, frameworks, graphics, css that load on a page and this extra 100k hurts.

Especially when it just doesn't seem necessary to be 100k? Entire JS frameworks are less than that :P
whats up?

5 Community Answers

JW Player

User  
1 rated :

ahh I see, its because you are bundling an entire player API? still seems a bit heavy for that.

is there a stripped down version of embedder-only for the HTML5/Flash method?

Ethan Feldman

JW Player Support Agent  
0 rated :

Here – http://developer.longtailvideo.com/trac/browser/tags/mediaplayer-5.4/jwplayer.min.js

JW Player

User  
0 rated :

The previous link (jwplayer.min.js) is the same size as the jwplayer.js included with the player download (94k). Should it be smaller?

JW Player

User  
1 rated :

the problem is that it is 94k
compared to swfobject at less than 10k

I understand they both don't do the same thing, was just hoping for a smaller footprint.

But I guess compressed its probably around 20k or less - so just gotta make sure it is served through deflate

JW Player

User  
0 rated :

This concerns me too. I understand the functional difference between jwplayer.js and swfobject. Maybe there could be a version of jwplayer.js that only does the client detection and embedding?

This question has received the maximum number of answers.