diff --git a/readme.md b/readme.md index 98c845f0..8b4b2cc2 100644 --- a/readme.md +++ b/readme.md @@ -132,7 +132,7 @@ Include the `plyr.js` script before the closing `` tag and then call `ply ``` -If you want to use our CDN for the JavaScript, you can use the following: +If you want to use our CDN (provided by [Fastly](https://www.fastly.com/)) for the JavaScript, you can use the following: ```html @@ -145,14 +145,14 @@ Include the `plyr.css` stylsheet into your `` ``` -If you want to use our CDN for the default CSS, you can use the following: +If you want to use our CDN (provided by [Fastly](https://www.fastly.com/)) for the default CSS, you can use the following: ```html ``` ### SVG Sprite -The SVG sprite is loaded automatically from our CDN. To change this, see the [options](#Options) below. For reference, the CDN hosted SVG sprite can be found at `https://cdn.plyr.io/2.0.10/plyr.svg`. +The SVG sprite is loaded automatically from our CDN (provided by [Fastly](https://www.fastly.com/)). To change this, see the [options](#Options) below. For reference, the CDN hosted SVG sprite can be found at `https://cdn.plyr.io/2.0.10/plyr.svg`. ## Advanced @@ -1067,5 +1067,7 @@ Also these links helped created Plyr: - [Media Events - W3.org](http://www.w3.org/2010/05/video/mediaevents.html) - [Styling the `` element - hongkiat.com](http://www.hongkiat.com/blog/html5-progress-bar/) +Thanks to [Fastly](https://www.fastly.com/) for providing the CDN services. + ## Copyright and License [The MIT license](license.md). diff --git a/src/js/plyr.js b/src/js/plyr.js index d65c4f7a..8a486d93 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -3258,7 +3258,7 @@ plyr.embed.unload().then(cleanUp); // Vimeo does not always return - window.setTimeout(cleanUp, 200); + timers.cleanUp = window.setTimeout(cleanUp, 200); break; @@ -3274,6 +3274,8 @@ } function cleanUp() { + clearTimeout(timers.cleanUp); + // Default to restore original element if (!_is.boolean(restore)) { restore = true;