简体   繁体   English

Joomla网站刷新页面后在android默认浏览器上显示白屏

[英]Joomla website showing white screen on android default browser after page refresh

I design new website using Joomla but this time I see something strange! 我使用Joomla设计新网站,但是这次我看到了一些奇怪的东西!
On any android device (by default browser (chrome)), it will show white screen if I refresh any pages of website. 在任何Android设备(默认为浏览器(Chrome))上,如果刷新网站的任何页面,它将显示白屏。
please note it will happen only at "page refresh" events. 请注意,它只会在“页面刷新”事件中发生。 I mean when you directly open the site with using address-bar and if you open links inside the website, it will show the page correctly, but if you refresh current page (with using "refresh button") you will see a "white screen" without any content. 我的意思是,当您使用地址栏直接打开网站时,如果您在网站内打开链接,它将正确显示该页面,但是如果刷新当前页面(使用“刷新按钮”),则会看到“白屏” ”,没有任何内容。

I am sure that content is loaded correctly, because if you change the rotation of your tablet (or mobile) or if you tap white page and try to scroll down, website will appear! 我确定内容已正确加载,因为如果您更改平板电脑(或移动设备)的旋转方式,或者如果您点击白页并尝试向下滚动,则会出现网站!

seems there is several type of report for this problem: 似乎有几种类型的报告针对此问题:
https://superuser.com/questions/440416/chrome-displays-a-page-for-split-second-then-it-goes-blank https://superuser.com/questions/440416/chrome-displays-a-page-for-split-second-then-it-goes-blank

but I could not solve the problem with those solutions. 但是我无法用这些解决方案解决问题。
do you know any way to solve this problem? 您知道解决这个问题的任何方法吗?
Thanks 谢谢

I got it 我知道了

in Joomla by default jQuery is loaded. 在Joomla中,默认情况下会加载jQuery。 in Joomla 3.6.2 (that I am using), it's loading jQuery v1.12.4 by default that is stored in this directory: 在Joomla 3.6.2(我正在使用)中,默认情况下会加载jQuery v1.12.4 ,该版本存储在此目录中:
/media/jui/js/jquery.min.js

I just try to replace it by latest version, it solve problem but it create another one! 我只是尝试用最新版本替换它,它解决了问题,但是又创建了另一个! in the console log I got a message that I can't use jQuery V3 because of bootstrap. 在控制台日志中,我收到一条消息,由于引导程序而无法使用jQuery V3。 then I downgrade to jQuery v2.2.4 (the latest version before version 3) and Hoooraaaaaaaaa, it's working now without any problem. 然后我降级到jQuery v2.2.4 (版本3之前的最新版本)和Hoooraaaaaaaaaaa,它现在可以正常工作了。

hope it help someone else 希望对别人有帮助

thanks 谢谢

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

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