MDL-57608 media_videojs: lazily load videojs on demand
authorDan Poltawski <dan@moodle.com>
Wed, 11 Jan 2017 09:50:03 +0000 (09:50 +0000)
committerMarina Glancy <marina@moodle.com>
Thu, 12 Jan 2017 02:55:18 +0000 (10:55 +0800)
commitda06c819474dae1b4903e37c78c6e0c30521b939
tree244167aba2e9c00f4c74ae27f3e8b72d6bf262f1
parent65b593a95cc12316ffeabfa3a254ffa976f61793
MDL-57608 media_videojs: lazily load videojs on demand

The videojs javascript is over 1MB of javascript which we don't need to
load on every page, now that we only require it demand, the js can be
lazily loaded when its needed, which keeps the first.js smaller and more
likely to stay in browser cache.
.eslintignore
.stylelintignore
media/player/videojs/amd/build/Youtube-lazy.min.js [new file with mode: 0644]
media/player/videojs/amd/build/Youtube.min.js [deleted file]
media/player/videojs/amd/build/loader.min.js
media/player/videojs/amd/build/video-lazy.min.js [moved from media/player/videojs/amd/build/video.min.js with 100% similarity]
media/player/videojs/amd/src/Youtube-lazy.js [moved from media/player/videojs/amd/src/Youtube.js with 99% similarity]
media/player/videojs/amd/src/loader.js
media/player/videojs/amd/src/video-lazy.js [moved from media/player/videojs/amd/src/video.js with 100% similarity]
media/player/videojs/readme_moodle.txt
media/player/videojs/thirdpartylibs.xml