简体   繁体   English

iOS HTML5 cordova应用

[英]IOS HTML5 cordova app

We've created an HTML5 presentation app . 我们创建了一个HTML5 presentation app What this app does is simply showing "slides" after each other. 该应用程序的作用是彼此之间简单地显示“幻灯片”。 These slides are built with images and hotspots on it. 这些slides均带有imageshotspots

With these hotspots you can navigate through other slides. 使用这些hotspots您可以浏览其他幻灯片。 Or you can open popups and other stuff like a short video. 或者,您可以打开popups和其他类似短视频的内容。

The problem now is that the app rans out of memory every time we open a video, or when we put more then 50 slides in it. 现在的问题是,每次打开视频或将50张幻灯片放到其中时,该应用程序都会out of memory

We've compressed all the images and videos . 我们已经压缩了所有images and videos All the images are around 30 - 250kb . 所有图像约为30 - 250kb

We are using cordova to read out our www folder which contains all the HTML,JS,CSS,video and images. 我们正在使用cordova读出包含所有HTML,JS,CSS,视频和图像的www文件夹。

If you need more information, please ask! 如果您需要更多信息,请询问!

Thanks in advance! 提前致谢!

Check out this article from the linkedIn dev team for tips on managing memory in a HTML5 app with a lot of items (summary: unload images and hide content that is not in view). 请查看linkedIn开发团队中的这篇文章,以获取有关在具有许多项目的HTML5应用程序中管理内存的提示(摘要:卸载图像并隐藏不可见的内容)。

Also, try chrome dev tools profiler or safari web inspector profiler to get an idea where your big memory hotspots are, and then measure the impact of any changes you make. 另外,请尝试使用chrome dev tools profilersafari web inspector profiler来了解大内存热点所在的位置,然后衡量所做的任何更改的影响。

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

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