Can you post a link to a post on your site that demonstrates the problem? 99% of the time it’s a conflict with your theme and it’s hard to guess what the fix is without seeing the live site.
Thread Starter
tokaup
(@tokaup)
Hey,
here is an example, the video on the front page here:
http://www.guideitallinn.se
The funny thing is that it worked perfectly earlier on a older version of your plugin.
In older versions of the plugin the JavaScript that ensured the video was responsive was in the header. I moved it to the bottom of the page to speed up loading times, but that means JavaScript errors that happen earlier in the page loading will break the responsive JavaScript (along with video view counting and a few other plugin functions). You have three errors showing up in the developer console. Something called autoptimize, fancybox, and et-ptemplates-frontend all have JS errors which are interfering with my JavaScript.
Hi guys;
I’m the autoptimize developer. AO aggregates & minifies JS & CSS. You can either exclude Video Embed & thumbnail generator’s JS from being Autoptimized (just add a unique string from the inline JS to the exclude list) or you can enable the “try/catch” option, which will shield JS from errors caused by another JS being minified.
Hope this helps,
frank
Autoptimize doesn’t seem to be causing any errors with my plugin’s JavaScript. The errors on the page are preventing it from running at all, so the try/catch option seems more likely to help.
Thread Starter
tokaup
(@tokaup)
Hey,
thanx for the suggestions but the “Add try-catch wrapping?” does not help. I use the W3 total cache also but have disabled minify etc there correctly i think when running Autoptimize.
The video is not being responsibe. Any more troubleshooting tips?
Well, you removed one of the JavaScript errors. Fancybox and et-ptemplates-frontend are still showing errors. I think those are both related to your theme, so I would ask your theme designer for help.