Opera 11.50 Win32 在每次页面更改时都会闪烁一个白页
我的网站和 Win32 上的 Opera 11.50 浏览器出现问题。当我使用 Opera 浏览 http://catza.net/ 时,每次页面更改时页面都会闪烁白色。由于默认调色板是深色的,因此非常烦人。看起来 Opera 会在每次页面更改时渲染重置样式表,并在渲染和显示实际的深色页面之前显示生成的白色页面。知道为什么吗?该问题似乎与 Opera 有关,因为 Chrome 12.0、Firefox 5.0、Internet Explorer 8.0 或 Safari 5.1 不会出现该问题。
该站点在自定义软件上运行,并且每次响应都会返回 Cache-Control 和 Expires。有两个简单的样式表 http://catza.net/style/reset/ 和 http://catza.net/style/dark/ 为每个页面加载。雅虎重置样式表的生命周期为 24 小时,而深色样式表和页面的生命周期为 1 小时。使用 Firebug,缓存标头看起来正常,并且 Expires 与 Cache-Control 设置的时间匹配。当我检查 Opera 的缓存内容时,我可以看到两个样式表都在缓存中:/style/reset/ 492 字节,/style/dark/ 1334 字节。样式表在每页的开头加载。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en"><head>
<title>catza.net - the singing revolution of cat show photos </title>
<link rel="stylesheet" type="text/css" href="/style/reset/">
<link rel="stylesheet" type="text/css" href="/style/dark/">
...
I'm having an issue with my site and Opera 11.50 browser on Win32. When I browse http://catza.net/ with Opera the page flashes white on every page change. Since the default palette is dark it is very annoying. It appears like Opera renders the reset stylesheet on each page change and displays the resulting white page just before rendering and displaying the actual dark page. Any idea why? The issue appears to be related to Opera since it doesn't occur with Chrome 12.0, Firefox 5.0, Internet Explorer 8.0 or Safari 5.1.
The site runs on a custom software and both Cache-Control and Expires are returned in every response. There are two simple stylesheets http://catza.net/style/reset/ and http://catza.net/style/dark/ that are loaded for every page. The reset stylesheet by Yahoo gets 24 hours of lifetime while the dark stylesheet and the pages get 1 hour. With Firebug the caching headers look OK and and Expires matches the time set with Cache-Control. And when I check Opera's cache content I can see that both stylesheets are in cache: /style/reset/ 492 Bytes, /style/dark/ 1334 Bytes. The stylesheets are loaded at the very beginning of each page.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en"><head>
<title>catza.net - the singing revolution of cat show photos </title>
<link rel="stylesheet" type="text/css" href="/style/reset/">
<link rel="stylesheet" type="text/css" href="/style/dark/">
...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论