admin管理员组文章数量:1434388
After installing (and uninstalling) Autoptimize, Async JavaScript, BJ Lazy Load, and Leverage Browser Caching plugins, my header shifts back and forth on page load - can you help find the fix?
I am pretty good with CSS but can't find the culprit of the fix. If you click the link you will most likely (haven't tested this bug in all devices and screen sizes - i see it in Chrome on Mac) see the upper left logo and menu items shift back and forth about a pixel.
I was working on page speed and one of those plugins did this. After deleting all four of those, it still is doing it. (The link below they are still activated, but i tested with another staging site deleting them and it didn't change.)
Can you help me come up with a CSS fix? I use Dev tools console every day - is there a way to "Freeze" or stop the page load at the exact moment this shifts, so i can inspect the CSS and compare to when page is loaded - maybe similar to how you can use breakpoints in JavaScript?
Needless to say lesson learned about making backups and / or using staging site to test plugins like those. Or in this case a staging staging site!
Thanks!
After installing (and uninstalling) Autoptimize, Async JavaScript, BJ Lazy Load, and Leverage Browser Caching plugins, my header shifts back and forth on page load - can you help find the fix?
I am pretty good with CSS but can't find the culprit of the fix. If you click the link you will most likely (haven't tested this bug in all devices and screen sizes - i see it in Chrome on Mac) see the upper left logo and menu items shift back and forth about a pixel.
I was working on page speed and one of those plugins did this. After deleting all four of those, it still is doing it. (The link below they are still activated, but i tested with another staging site deleting them and it didn't change.)
Can you help me come up with a CSS fix? I use Dev tools console every day - is there a way to "Freeze" or stop the page load at the exact moment this shifts, so i can inspect the CSS and compare to when page is loaded - maybe similar to how you can use breakpoints in JavaScript?
Needless to say lesson learned about making backups and / or using staging site to test plugins like those. Or in this case a staging staging site!
Thanks!
http://04a.b95.myftpupload
Share Improve this question asked Apr 2, 2019 at 14:51 Ben BlueBen Blue 1171 silver badge8 bronze badges 6 | Show 1 more comment1 Answer
Reset to default 0i found this CSS:
@media only screen and (min-width: 800px) { .no-overflow-y body { padding-right: 9px !important; } }
and changed it to
@media only screen and (min-width: 800px) { .no-overflow-y body { padding-right: 0px !important; } }
and that solved the issue.
本文标签: cssHow to fix shifting header after installing speedcache plugins
版权声明:本文标题:css - How to fix shifting header after installing speedcache plugins? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745633656a2667422.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
@media only screen and (min-width: 800px) { .no-overflow-y body { padding-right: 9px !important; } }
I don't completely understand what happened, but that seems to have fixed it. – Ben Blue Commented Apr 2, 2019 at 20:31