WAI
Status Update
Comments
ed...@gmail.com <ed...@gmail.com> #2
same problem here.. google should exclude google services from pagespeed issues
[Deleted User] <[Deleted User]> #3
Yes we have a similar problem. Our site is WordPress with Enfold theme and W3 cache.
ar...@gmail.com <ar...@gmail.com> #4
Still having this issue. Please fix this. Seems little effort for you guys.
ef...@gmail.com <ef...@gmail.com> #5
It's ironic, practice what you preach please! This could take at least 30 seconds to fix...
ul...@google.com <ul...@google.com> #6
Reported internally.
mi...@gmail.com <mi...@gmail.com> #7
[Comment deleted]
jo...@gmail.com <jo...@gmail.com> #10
Same problem. It seems to be fairly minified, apart from a few new lines here and there. Maybe pagespeed is too strict?
[Deleted User] <[Deleted User]> #11
This is still a problem. I can't believe it has not been fixed yet. Failing Google page speed tests because of this. Is there an ETA on when it will be sorted?
ed...@gmail.com <ed...@gmail.com> #12
I came up with a js based solution. dont put the video from start, put a image on a div and when you click on it, load the video iframe
<script type="text/javascript">
<!--
jQuery(document).ready(function(){
jQuery('.home_video').click(function(){
if(jQuery('.home_video img').length>0){ jQuery('.home_video').html('<iframe width="300" height="150" src="https://www.youtube.com/embed/Vnyti6GX1gM?modestbranding=1&controls=0&&showinfo=0&autoplay=1 "></iframe>');}});});
-->
</script>
<script type="text/javascript">
<!--
jQuery(document).ready(function(){
jQuery('.home_video').click(function(){
if(jQuery('.home_video img').length>0){ jQuery('.home_video').html('<iframe width="300" height="150" src="
-->
</script>
li...@gmail.com <li...@gmail.com> #13
Still a problem - would love to see the quick fix!
do...@gmail.com <do...@gmail.com> #14
Thanks to comment #11 I came up with a similar JS solution that waits on the page to load instead of a click event (since there's no autoplay for mobile devices it would mean a user would have to click twice if we use the click event). I added data attributes to our user generated output as well so we have code like this:
<!--
<div id="youtube-wrapper"><span class="yt-play yt-img-replace" data-video-id="'.$video_id.'" data-autoplay-param="'.$autoplay_param.'" style="background-image:url(\'' . $item->video->thumbnail->hqDefault . '\');" /></span></div>
-->
You'll see those data-attributes referenced below:
<script type"text/javascript">
<!--
$(window).bind('load', function(){
var vidID = $('.yt-img-replace').data('video-id');
var autoPlay = $('.yt-img-replace').data('autoplay-param');
//console.log(vidID);
//console.log(autoPlay);
$('#youtube-wrapper').append('<iframe src="http://www.youtube.com/embed/'+vidID+'?wmode=transparent&autoplay='+autoPlay+ '" frameborder="0"></iframe></div>');
$('.yt-img-replace').detach();
});
-->
</script>
<!--
<div id="youtube-wrapper"><span class="yt-play yt-img-replace" data-video-id="'.$video_id.'" data-autoplay-param="'.$autoplay_param.'" style="background-image:url(\'' . $item->video->thumbnail->hqDefault . '\');" /></span></div>
-->
You'll see those data-attributes referenced below:
<script type"text/javascript">
<!--
$(window).bind('load', function(){
var vidID = $('.yt-img-replace').data('video-id');
var autoPlay = $('.yt-img-replace').data('autoplay-param');
//console.log(vidID);
//console.log(autoPlay);
$('#youtube-wrapper').append('<iframe src="
$('.yt-img-replace').detach();
});
-->
</script>
it...@gmail.com <it...@gmail.com> #15
Dear friends,
We are dealing with a similar problem for HTML5 player-new.js. What is strange is that Youtube API header not charge than anywhere else. However, disconnecting Analytics and SEO plugins, the problem disappeared.
Video loading is similar to # 11 comment.
So, the question of why and what analytics uses HTML5 player?
We are dealing with a similar problem for HTML5 player-new.js. What is strange is that Youtube API header not charge than anywhere else. However, disconnecting Analytics and SEO plugins, the problem disappeared.
Video loading is similar to # 11 comment.
So, the question of why and what analytics uses HTML5 player?
al...@consultaclick.es <al...@consultaclick.es> #16
[Comment deleted]
al...@gmail.com <al...@gmail.com> #17
Hi!
I have the same problem. My web have 5 videos and happend this:
https://s.ytimg.com/.../html5player-new.js (867.5 KB)
https://s.ytimg.com/.../html5player-new.js (867.5 KB)
https://s.ytimg.com/.../html5player-new.js (867.5 KB)
https://s.ytimg.com/.../html5player-new.js (867.5 KB)
https://s.ytimg.com/.../html5player-new.js (867.5 KB)
https://s.ytimg.com/.../html5player-new.js (867.5 KB)
https://s.ytimg.com/.../html5player-new.js (867.5 KB)
One petition for each video...
We have any solution for this problem???
Regards!
I have the same problem. My web have 5 videos and happend this:
One petition for each video...
We have any solution for this problem???
Regards!
ma...@google.com <ma...@google.com>
ha...@gmail.com <ha...@gmail.com> #18
WontFix - ridiculous !!!
gr...@gmail.com <gr...@gmail.com> #19
Any solutions for it?
Description
IFrame player API
Issue summary:
We have an YouTube video embedded on our front page. We were getting "avoid plugins" complaint from google speed insights, so we switched to an iFrame embed in order to allow mobile devices to get the HTML5 player instead. This was done ok, and the "avoid plugins" was eliminated, but now we get a "Minify JS" complaint because of the html5player.js loaded by YouTube, which (according to google) is not small enough. So, this leads us to a loose-loose situation, where we either score lower because of flash, either because of YouTube html5player.js
Steps to reproduce issue:
1. Make an iFrame embed
2. Run Google speed insights here "
Expected output:
Expected output is to have the "Minify JavaScript" rule passed.
Actual results:
"Minify JavaScript" rule goes to "consider fixing" in best of cases, with html5player.js listed as culprit of being 1% bigger than recommended.
This is not a showstopper issue of course, but is very annoying. It wouldn't be so funny, if YouTube wasn't a Google company.