利用JavaScript預加資源 - PxLoader

ajax 13年前發布 | 4K 次閱讀 數據

Loading screens are a part of almost any application (softwares, games, etc.) since forever.

We also see them in HTML5 apps informing us that the resources to be used for the application is being downloaded and the status of the overall progress.

PxLoader is a JavaScript library, that is built for the popular Cut The Rope game's HTML5 version, for downloading images, sound files or any other resource before any defined action (like activating the whole app).

PxLoader

It enables us to monitor download status with the help of progress + completed events and also lets us to prioritize the order in which items are downloaded.

Such features make PxLoader not only a library to manage the download of resources but also a good fit for creating visual preloaders for HTML5 apps.

 本文由用戶 ajax 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!