jquery.mb.YTPlayer
jquery.mb.YTPlayer copied to clipboard
[FEATURE REQUEST] Distribute ultra lightweight version of plugin
Hi @pupunzi, Here is a feature request for you. I think it would be very cool and beneficial if we could have a version of this plugin that is very lightweight and only has one functionality; keep looping through one video. I think there are a lot of people who use this plugin just to play a single background video for their website, so they aren't interested in all of the features including providing user input keys, or having a playlist of videos, or shuffling, etc.
Do you think you could also distribute a version called something like: jquery.mb.YTPlayer.basic.js and jquery.mb.YTPlayer.basic.min.js? These versions would only have code for looping through a single video and would be very lightweight.
+1
+2
For anyone interested, I have created a very lightweight library that supports only the basics: https://github.com/OriginalEXE/vidim
@OriginalEXE It is not really lightweight :-D It's almost lightweight as the YTPlayer.js is...
Well I would not call it super lightweight, but it's still quite smaller :P
If you check the final size in the dist folder, it's 52.3kb vs 15kb (the minified versions), so more than 3 times smaller. It's worth noting that in that 15kb there is also a support for self hosted videos as well, that could be thrown out in a custom build (very easy to do) for additional reduction in size (I would guess about ~ -4kb in minified version).
Also the advantage is that jQuery is not required, though it doesn't support a lot of the features YTPlayer does so not for those who need playlists for example.
Any updates here @pupunzi?