简体   繁体   English

iPad2,iPhone 4S上的iOS网站加载问题

[英]Website loading issues iOS on iPad2, iPhone 4S

I am developing a site that is having some issues loading on older iOS hardware. 我正在开发一个网站,在较旧的iOS硬件上加载时遇到一些问题。 I am pretty sure that the issues are related to the total size of the images being loaded into the site (large graphic designer portfolio visuals), but have been unable to find any documentation on these limitations of the hardware. 我敢肯定,问题与正在加载到站点中的图像的总大小有关(大型图形设计师作品集的视觉效果),但是一直找不到有关硬件这些限制的任何文档。 Site is coded in HTML/CSS/JS with some jQuery libraries for the home slideshow. 网站使用HTML / CSS / JS编码,带有一些用于家庭幻灯片放映的jQuery库。 Site was built using Yeoman and scaffolded with Twitter Bootstrap 3. 该网站是使用Yeoman构建的,并带有Twitter Bootstrap 3的脚手架。

URL: http://bradshawdesignsolutions.com 网址: http//bradshawdesignsolutions.com

iOS8 tested: iPad Air (2013) => ok, Retina Mini (2013) => ok, iPhone 4S => hangs/crashes 已测试iOS8:iPad Air(2013)=>确定,Retina Mini(2013)=>确定,iPhone 4S =>挂起/崩溃

iOS7 tested: iPad 2 => hangs/crashes 已测试iOS7:iPad 2 =>挂起/崩溃

Any help that could point me in the right direction for resolving this issues would be greatly appreciated. 我们将不胜感激能为我指出正确方向解决此问题的任何帮助。 Even if the solution is cut the images in half... 即使解决方案被切成两半图像...

You seem to be loading massive images into the iPad2, it only has a 1024x768 screen but many of your images are much bigger. 您似乎正在将大量图像加载到iPad2中,它只有1024x768的屏幕,但是许多图像要大得多。 eg this http://bradshawdesignsolutions.com/images/bg-slides/0f5416af.slide-4.jpg is 2025x1207, and there appear to be several at this size. 例如,此http://bradshawdesignsolutions.com/images/bg-slides/0f5416af.slide-4.jpg为2025x1207,并且似乎有很多这种尺寸。

The inspector is also showing this Javascript error: 检查器还显示此Javascript错误:

[Error] TypeError: null is not an object (evaluating 'e.text')
    c (8bda17b1.vendor.js, line 4)
    assetLoaded (8bda17b1.vendor.js, line 4)
    d (8bda17b1.vendor.js, line 4)
    dispatch (8bda17b1.vendor.js, line 2)
    handle (8bda17b1.vendor.js, line 2)

If you have a Mac on hand I would plug the iPad 2 into it (after enabling Web Inspector in Safari's Settings) and use the Inspect sub-menu in Mac Safari's Develop menu to see what's going wrong. 如果您手头有Mac,则可以将iPad 2插入其中(在Safari的“设置”中启用Web Inspector后),然后使用Mac Safari的“ 开发”菜单中的“ 检查”子菜单查看问题所在。

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

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