sIFR 导致初始页面加载停止?

发布于 2024-07-16 18:14:08 字数 1713 浏览 8 评论 0原文

我最近刚刚启动了我的博客,我认为 sIFR 导致初始页面加载停滞,基本上导致内部 500 错误或超时。

该网站的 URL 是 http://gothamblack.com/

对于我的生活,我无法确定什么是正在进行中。 我目前正在运行最新版本的 sIFR,将 parseSelector 替换为使用“$”来利用 jQuery。 其他详细信息包括:Expression Engine CMS、Mint stats 和用于压缩文件的修改后的 htaccess(如果发生冲突,这可能是另一个问题?但我不知道如何解决)。

我将 sIFR 替换调用重新定位到 global.js 文件中,以最大限度地减少文件请求,并且该调用在流中最后调用。 我的JS文件如下:

用parseSelector修改了sifr min: http://gothamblack.com/源/脚本/sifr.js 全局 JavaScript 文件: http://gothamblack.com/source/scripts/global.js

修改后的 htaccess 文件包含以下命令:


# Set Language and Character Set
AddDefaultCharset utf-8
AddLanguage en-gb .en
# Cache images and set default on everything else
ExpiresActive on
ExpiresDefault A259200
ExpiresByType image/gif A1209600
ExpiresByType image/png A1209600
ExpiresByType image/jpeg A1209600
# Set css and js so they can be gzipped
<IfModule mod_mime.c>
AddType application/x-httpd-php .css
AddType application/x-httpd-php .js
</IfModule>
# Expression Engine related
Options +FollowSymLinks
RewriteEngine On
# site routing
RewriteCond %{HTTP_HOST} ^www\.gothamblack\.com$ [NC]
RewriteRule ^(.*)$ http://gothamblack.com/$1 [L,R=301]
# Expression Engine related routing
RewriteCond $1 !^(enginecore|feeder|images|mint|source|themes|favicon\.ico|robots\.txt|index\.php) [NC]
RewriteRule ^(.*)$ /index.php/$1 [L]

如果有人对我可以采取哪些措施来解决此问题有任何想法,我们将不胜感激。 我尝试在页面加载时查看萤火虫,但我似乎无法确定当出现停顿时它在旋转什么。

再次感谢您的帮助!

I just recently launched my blog, and I think that sIFR is causing intial page loads to stall, basically causing an internal 500 error or timeout.

The URL for the site is http://gothamblack.com/

For the life of me, I cannot determine what is going on. I am currently running the latest version of sIFR, with the replacement of the parseSelector to use "$" to leverage jQuery. Other details are: Expression Engine CMS, Mint stats, and a modified htaccess to compress files (which might be another issue if it conflicts? but I don't see how).

I relocated the sIFR replacement calls to a global.js file to minimize the file requests, and that is called last in the stream. My JS files are at the following:

modified sifr min with parseSelector: http://gothamblack.com/source/scripts/sifr.js
global javascript file: http://gothamblack.com/source/scripts/global.js

The modified htaccess file has the following commands:


# Set Language and Character Set
AddDefaultCharset utf-8
AddLanguage en-gb .en
# Cache images and set default on everything else
ExpiresActive on
ExpiresDefault A259200
ExpiresByType image/gif A1209600
ExpiresByType image/png A1209600
ExpiresByType image/jpeg A1209600
# Set css and js so they can be gzipped
<IfModule mod_mime.c>
AddType application/x-httpd-php .css
AddType application/x-httpd-php .js
</IfModule>
# Expression Engine related
Options +FollowSymLinks
RewriteEngine On
# site routing
RewriteCond %{HTTP_HOST} ^www\.gothamblack\.com$ [NC]
RewriteRule ^(.*)$ http://gothamblack.com/$1 [L,R=301]
# Expression Engine related routing
RewriteCond $1 !^(enginecore|feeder|images|mint|source|themes|favicon\.ico|robots\.txt|index\.php) [NC]
RewriteRule ^(.*)$ /index.php/$1 [L]

If anyone has ANY ideas as to what I can do to troubleshoot this, that would be greatly appreciated. I tried looking at firebug when the page loads, but I cannot seem to pinpoint what it is spinning its wheels on when there is a stall.

Thanks again for the help!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情感失落者 2024-07-23 18:14:08

你能尝试去掉Mint吗?

关于 sIFR 设置:您必须直接从 JavaScript 调用 sIFR.activate(),而不是从任何 onload 事件调用。 您还可以在字体对象上放置一些共享属性(例如比率)。 我认为复杂的 switch() 语句也不是必要的 - 如果 DOM 中没有某些内容,sIFR 也不会失败。

Could you try removing Mint?

Regarding the sIFR setup: You must call sIFR.activate() directly from JavaScript, not from any onload events. You can also put some shared properties (like ratios) on the font objects. I don't think your complicated switch() statement is necessary either — sIFR won't fail if something isn't in the DOM.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文