hi theriddler1982;
not sure, when comparing https://ziin.de/ with ziin.de/?ao_noptimize=1, I don’t think I see a difference in the way the fullscreen vid is rendered? could you tell in detail me what you (don’t) see when AO is active?
frank
Hi Frank,
wow, thanks for your fast reply. I’ve uploaded two screenshots from Chrome 44 (OS X 10.10.5):
When called with https://ziin.de/?ao_noptimize=1:
https://ziin.de/Chrome-Disabled.jpg
Menu is hidden, slider is hidden, control buttons are visible
When called with https://ziin.de/:
https://ziin.de/Chrome-Enabled.jpg
Menu is visible, Slider is visible and the control buttons are invisible
Thanks again,
Sven
ok, not an easy one, that I can tell you.
What I found out until now;
* this does not happen in Firefox
* this is not a CSS, but a JS problem (confirm by briefly disabling JS optimization)
* problem is that “fullscreen-video-js” is not added to the body class
* I don’t see errors in the browser console (which would simplify things)
So what should be done next (got to stop for now); find out which JS is adding that “fullscreen-video-js” class to body and try if excluding that from optimization fixes the issue.
frank
Hi Frank,
wow, that’s the reason. I’ve identified the Javascript, excluded it from optimization and now it works. 🙂
I’ve uploaded the file to https://ziin.de/video.js in an unminimized version. Do you have any idea what is causing the trouble? Any hint would be great!
One funny thing is: once it’s excluded, some other stylesheets are now working fine in Firefox which haven’t before.
Thanks again,
Sven
btw: what option do you use in the url to keep the css optimization active but only disable js? ao_noptimize=1 does both, doesn’t it?
Thanks!
Do you have any idea what is causing the trouble? Any hint would be great!
no idea no, I didn’t even get an error on chrome’s console.
what option do you use in the url to keep the css optimization active but only disable js? ao_noptimize=1 does both, doesn’t it?
ao_noptimize=1 disables all indeed, I might add some parameter to only disable JS- and CSS-optimization later (it’s not available now).
frank
Hi Frank,
Thanks for your feedback. Could you have another look at the Firefox CSS styles when autooptimize is enabled?
Please have a look at the following screenshots:
https://ziin.de/Enabled.jpg
shows horizontal lines (ignoring the clipping)
https://ziin.de/Disabled.jpg
shows the correct clipping path.
Do you know which css class I have exclude from optimization?
Thanks again!
Bye,
Sven
I have several diagonal clipping masks on my start page
Hi Frank,
sorry to bother you again, Do you have any idea about the the clipping issues in Firefox?
Thanks,
Sven
sorry Sven, don’t have time to look into this right now. still on my to-do list though 😉
frank
Hiya Sven;
Had a look, you’ll have to make sure that the inline CSS-block that has the section.clipped code is excluded from optimization (cfr. https://ww.wp.xz.cn/support/topic/problem-with-css-for-clip-path-svg 😉 ).
Hope this helps,
frank
I just committed a fix on GitHub for AO not to misbehave on that CSS-code any more.
You can either make the (small) change yourself to the Autoptimize running on your site (1.9.4 I guess), or you could download the zip-file from GitHub and overwrite the files on your server. Once that is done, you should not have to exclude that block of CSS from optimization any more.
Do let me know how that works for you!
frank
Hi Frank,
wow, thanks again for your fast response.
I took the github commit, downloaded it as ZIP, extracted it on my webserver, removed the old files in the plugins/autoptimize and inserted the new ones (with updated permissions).
Sorry to tell you that the fix didn’t resolve the clipping problem. In the inline CSS the domain has vanished, i.e.
clip-path:url("#clipPolygonTop")}section.clipped.clippedBottom{clip-path:url("#clipPolygonBottom")}
If you view the start page in Firefox, the diagonal clipping masks are not rendered.
The old post you referred to from me :-), works on my subpages. But all of the clipping paths which uses diagonal elements (which you can see in Chrome), are ignored. No idea why.
Do you have any idea? Do I still have to exclude a class in the plugin settings?
Thanks,
Sven
Hi again,
funny thing: I can reproduce the following:
1.) visit ziin.de in Firefox -> no clipping
2.) visit ziin.de/?ao_noptimize=1 -> clipping works
3.) reload page ziin.de (no cache cleaning) -> clipping works
I have no idea why this works. Maybe a CSS priority thing? Because the files are already in the cache? On the other side, when I reload the page from clean cache, the clipping doesn’t work either.
Thanks again
Sven
Sorry to tell you that the fix didn’t resolve the clipping problem. In the inline CSS the domain has vanished.
well, that’s the goal of the fix. if you look at the original sources (ao_noptimize=1), you’ll see there should be no domain in there in the first place. with this in place, you should be able to remove the exclusion we identified in the previous thread.
The old post you referred to from me :-), works on my subpages. But all of the clipping paths which uses diagonal elements (which you can see in Chrome), are ignored. No idea why.
so the problem we’re talking about now is;
* on homepage only?
* in firefox with empty cache only?
frank