I developed a point-of-sale system using MVC 4. The response time and loading time on Windows and Mac are instant, but on the iPad it takes 8-13 seconds to load a page or perform actions such as adding items to the cart. To increase the speed of the web application, I turned on compression in IIS and minimized all my java script files, which I also used to combine the following .js files, which supposedly improve page loading:
- Jquery-1.8.2.min.js
- Knockout 2.2.0.js
- jquery.easing.1.3.js
- b.popup.min.js (used to display a modal pop-up window of only 6 KB)
The other javascript files that I use on the pages are between 5KB and 15KB. After that, all the time the application seems several seconds faster, but still takes an unacceptably long time (8-10 seconds).
Has anyone encountered similar performance issues on the iPad and how did you resolve it? Is there anything else I can do to improve performance?
I am using Windows Server 2003 and IIS 6.0
Here is my registration code:
public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-1.8.2.min.js", "~/Scripts/jquery.easing.1.3.js", "~/Scripts/knockout-2.2.0.js", "~/Scripts/common/common.min.js", "~/Scripts/popup.min.js" )); bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css")); BundleTable.EnableOptimizations = true; }
And here I find it on the main page:
@using System.Configuration <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width" /> <meta name="apple-mobile-web-app-capable" content="yes"> <title>Prestige SSC</title> @Scripts.Render("~/bundles/jquery") @RenderSection("scripts", required: false) @Styles.Render("~/Content/css") <script type="text/javascript"> var screenRefreshTime = '@ConfigurationManager.AppSettings["ScreenRefreshTime"].ToString()'; screenRefreshTime = parseInt(screenRefreshTime); </script> </head> <body> @RenderBody() </body> </html>
source share