简体   繁体   English

w3 Total Cache跨浏览器问题

[英]w3 Total Cache Cross-browser problems

I have designed a website using Wordpress and caching it with W3 Total Cache. 我设计了一个使用Wordpress的网站,并使用W3 Total Cache对其进行了缓存。 I have experience with them both but I encountered the next problem. 我对他们两个都有经验,但是遇到了下一个问题。

The website http://atelieruldigital.com is a one page website, with another page for the partners of the program ( http://atelieruldigital.com/parteneri/ ). 网站http://atelieruldigital.com是一个一页的网站,另一页是该计划的合作伙伴( http://atelieruldigital.com/parteneri/ )。 When I access the partner page, everything loads as it should. 当我访问合作伙伴页面时,一切都会按预期加载。 When I access the main page by clicking "Acasă" or the logo, I have the next behaviors: 通过单击“Acasă”或徽标访问主页时,我有以下行为:

  1. Google Chrome: everything loads as it should; 谷歌浏览器:一切都会按需加载;
  2. Mozilla Firefox: the scripts have lots of errors in the console and the page loads broken. Mozilla Firefox:脚本在控制台中有很多错误,页面加载失败。 I have to refresh (F5) to make it work as intended; 我必须刷新(F5)以使其按预期工作;
  3. Microsoft Edge: the same problem as Mozilla. Microsoft Edge:与Mozilla相同的问题。

I am using manually minifying, only by combining the scripts, excepting the mobile-menu.js, which grants error when I try to combine it. 我仅通过组合脚本来使用手动压缩,但mobile-menu.js除外,当我尝试将其合并时会授予错误。 I do not use page caching, only object and browser caching. 我不使用页面缓存,仅使用对象和浏览器缓存。 The theme is a custom theme, based on Twenty Sixteen. 该主题是自定义主题,以“二十六岁”为基础。

If I disable the caching plugin, everything works as intended. 如果我禁用了缓存插件,那么一切都会按预期进行。 But I need it to help the page load faster. 但是我需要它来帮助页面更快地加载。

I have found the solution after a couple of days of debugging. 经过几天的调试,我找到了解决方案。 It seems like when manually combining the .js files, I had to switch around some in the load order. 似乎在手动组合.js文件时,我不得不按加载顺序进行一些切换。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM