初次访问页面时画廊未加载
我正在为我正在建立的网站使用 Galleria 插件,在我在别人的计算机上对其进行测试之前,它运行得非常完美。
在访问者首次访问该网站时,幻灯片根本不会加载,但在重新加载页面后它将出现。我在构建网站时从未遇到过问题,但是当我清除缓存和数据并访问该网站时,我遇到了同样的问题。
那么这是怎么回事呢?有一个简单的修复方法吗? 有没有办法在初次访问时强制页面重新加载?
在主页上,第一次访问(之前没有来自该网站的缓存/数据/cookie)始终加载,没有Galleria 插件幻灯片播放。但重新加载一次后,它的工作效果非常好。 任何帮助表示赞赏。
不要批评太多,这是我做的第一个网站,大部分都是把别人的代码粘在一起做出来的。
I'm using the Galleria plug-in for a website I'm setting up, and it was working flawlessly until I tested it on someone else's computer.
On a visitors initial visit to the site, the slideshow will not load at all, but after reloading the page it will appear. I never had a problem with it while I was building the site, but when I cleared my cache and data and visited the site, I ran into the same problem.
So whats going on here? Is there a simple fix?
Is there a way to just force a page reload upon the initial visit?
On the home page, the first visit (no cache/data/cookies from the site previously) consistently loads without the Galleria plug-in slideshow playing. But after one reload, it works beautifully.
Any help is appreciated.
Don't criticize too much, this is the first site I've made, and it was mostly made through sticking other people's code together.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我看到了完全相同的行为。对我来说解决这个问题的方法是在 html 头部加载 css 主题:
I was seeing the exact same behavior. What fixed it for me was loading the css theme in the html head: