Windows Phone 8 HTML5 - local vs remote HTML performance - performance

I have an HTML5 game set up using the 'Windows Phone HTML5 App' template. This essentially just loads the HTML Game in a WebBrowser control.
When loading index.html locally with a relative URI, performance is dismal with the profiler showing about 10fps:
When loading exactly the same HTML, only from my remote server, I'm getting a good 45fps.
Does anyone have any idea what this disparity is and how to fix it?
Edit -> When loading all images remotely the performance issues are gone. The problem lies in loading images locally, rather than remotely. Bewildering.
Edit 2 -> Base64 encoding the images as data URIs also has the same massive performance gains. Unfortunately that isn't workable for us, but shows something is seriously wrong with loading images locally

Have you found the cause of the problem?
First, in order to make sure you do not have any xss issue can you setup Fiddler for example and monitor the traffic on the phone?
Second, crazy idea: would it work to make a simple http server in your own app? you can then set the webbrowser load your game from it and see how that works compared to loading from local

Related

Page stops loading before all image/files are done

I recently got a new Windows 2016 machine and Lucee (ColdFusion). Transferring all my clients e-Commerce sites from Windows 2008 CF9. I am having an issue with all images downloading to the browser. The images are a bit to large, client not following directions, BUT this was not an issue with the old machine. If you go to https://shop.bosombuddybags.com/p824/HBB-Custom-Monogram.htm for the first time many of the option images do not load/transfer but the page has stop loading. They are all there, refresh a few times and they appear use CNTRL F5 and they disappear again randomly. I have spent 2 days looking through Google searches, and getting no where. Any suggestions are welcome as this clients had over 1200 options uploaded and having them redo them to make proper thumbs is not an option. I figure it has to be a Lucee or Windows 2016 setting that I am missing. As the page stops loading and never loads what ever images were not completed.
Here are the recommendations:
You have got about 3 or 4 images that are just enormous. Get those down to size.
Try turning data compression on IIS for static content.
Try doing some inline images
Try eliminating some images. Both Font-Awesome and Glyphicons have Facebook and Twitter. You can use them.
Otherwise this is a really show page.

Some images wont load on internet explorer 10 & 9 & 8

When i load my website on IE10/9/8 some images wont load.
and if i reload the page, the previous images loads perfectly, but some other images wont load.
And if i remove the browser cache, and refresh the page, same thing. some images load and other w'ont load. you can also see that problem in the portfolio page
thanks
Have you tried loading the webpage in alternative browsers? I'm loading it in Google Chrome and all the images load perfectly fine. Internet Explorer utilities your graphics card as well as your processor to load images to make it faster, which might be totally irrelevant for this question but perhaps your graphics card/processor is causing you issues?
If it's working in other browsers, then use them as opposed to Internet Explorer. It will be a bug with their browser and it's compatibility with whatever system you're using. It's the worst browser to use in all honesty.

How can I render HTML in a Silverlight 5 app?

I'm currently working on a project that renders emails in HTML format to a Silverlight 5 app. The app is intended to be viewed via a web browser and not an 'Out of browser' app. The WebBrowser control was initially used, but I'm having issues with it. A message stating that IE needs elevated permissions and such. After reading how to properly implement the WebBrowser control by signing the .xap file and installing certificates it seems to work when I run it locally, but when I publish to the server (Windows Server 2008), it doesn't seem to work.
I tried to implement an alternative I found -> http://blogs.msdn.com/b/delay/archive/2007/09/10/bringing-a-bit-of-html-to-silverlight-htmltextblock-makes-rich-text-display-easy.aspx, but that didn't seem to work as the HTML I'm trying to render has many tags not supported in that example.
I also took a look at the Frame control http://msdn.microsoft.com/en-us/library/system.windows.controls.frame(v=vs.95).aspx but not sure if that would solve my problem either.
So if anyone can guide me into the right direction of either how I can get the WebBrowser control to work when pushed to the server or perhaps another alternative it would be greatly appreciated.

pie.htc file incorrectly appearing as http_referer with IE8 and IIS6

I'm working on a corporate intranet and we have recently redesigned it using all sorts of CSS3 goodness as specified by a design agency. Our corporate standard browser is (still) IE8 so in order to make the CSS3 work I employed CSS3 PIE (http://css3pie.com/) which recreates the CSS functionality using VML via a .htc file - and it works great. However I've noticed that the http_referer value for pages viewed in IE8 is being returned as the location for pie.htc instead of the actual referring page and it was working just fine before the redesign. Firefox is tolerated as an alternative browser and for pages viewed in that browser all the http_referer values are as they should be. This is causing quite a headache for forms which redirect using this variable, as well as the logs which dump various environment variables to database for easy querying - and the guys who analyse the stats aren't remotely happy!
I have flagged this with the developer of CSS3 PIE and it's a mystery to him, but before I register a bug I wanted to see if it might be some failing of IIS or some setting I've missed in it (I'm using version 6 on Windows 2003). We have an Linux server with Apache as well for different purposes which I redesigned using the same technique and that doesn't seem to be displaying the same behaviour.
Does anyone have any related experience with PIE or any other .htc files on IIS which they were able to solve? Or is it some kind of IE8 bug that will never be fixed?
we experience the same issue. We removed it from the html. It could be an IE bug, I don't see any reason why the referer of the .htc should be the same as the page.

Preventing Mobile Safari Cache Overflow

I've got a simple little web app that's aggregating a couple views from some ethernet enabled cameras around my house. This is basically a little dashboard, so that I can easily tell what's going on around the house. I've got it refreshing the images every so often by appending new Date().getTime() to the base URI.
Everything works happy days, except for one little issue. If I leave the dashboard up on my iPad for awhile, it runs out of memory and crashes back to the home screen. I know that its because Mobile Safari is caching each of these images in RAM and it eventually ends up with far too many of them.
Since these images are being hosted on embedded devices; I really have no ability to modify the caching headers directly. I would like to stay away from making a wrapper on my server side as well.
My question is; can anyone think of a way to prevent Mobile Safari from caching these images so aggressively that it crashes?
You might try to reuse your img tags and/or set the src attribute to an empty string before removing an image. It's probably not an aggressive cache that's crashing mobile safari, but how the browser doesn't deal well with releasing image references when image tags get deleted.
You might find more useful information here:
http://www.vargatron.com/2010/08/ipad-html5-js-memory-management/

Resources