I am using my raspberry pi with raspbian as a kiosk that show a webpage that i created. It is all working fine but when my web need to change a png it react slowly. If i run the same webpage on my desktop the reaction is much faster.
I use the command chromium --kiosk http://myurl.com
My page include angular so some other browser that i tried not supporting (midori for example) other browser like epiphany web (default browser at raspbian) working fine but not supporting kiosk mode.
Any ideas how can improve it?
Code: View
@using Unitronics.Apms.ApmsWebClient.Resources.Views.Display
@model Unitronics.Apms.ApmsWebClient.Models.Display
<div>
<div class="image" id="image1">
</div>
<div class="image" id="image2">
</div>
<div class="warningImage" id="warningImage">
</div>
</div>
@section scripts {
<!--Script references. -->
<!--The jQuery library is required and is referenced by default in _Layout.cshtml. -->
<!--Reference the SignalR library. -->
<script src="~/Scripts/jquery.signalR-1.1.3.js"></script>
<!--Reference the auto generated SignalR hub script. -->
<script src="~/signalr/hubs"></script>
<!--SignalR script to update the chat page and send messages.-->
<!--Roy Foscam test-->
<script>
$(function() {
hideAll();
$("#image1").show();
// Reference the auto-generated proxy for the hub.
var bayHub = $.connection.bayHub;
bayHub.client.notifyRejects = function(rejects) {
hideAll();
if (rejects.image2)
$("#image2").show();
if (rejects.warning)
$("#warningImage").show();
};
function hideAll() {
$("#image2").hide();
$("#warningImage")..hide();
}
// Start the connection.
$.connection.hub.start().done(function() {
// Register
bayHub.server.register(@Model.DisplayId);
});
});
</script>
}
This is more or less my code. I was just editing it a little bit to make it shorter here but it react to some outputs that it receive from another device and it should change the image according to the inputs it get.
I imagine you're using the Raspberry Pi A/B/B+ and not the Raspberry Pi 2. The Raspberry Pi 2 is a lot faster than the previous models (6x faster, specially for web browsing). So the simplest solution is for you to use a newer Pi. The physical layout is exactly the same as the B+ so it should be a pretty good fit.
Otherwise, if you can't change the hardware for whatever reason, then the best you can do is re-code your site to be simpler so it fits with the hardware limitations you're facing. Angular is pretty good but also pretty heavy. If you could make the site work with something lighter it would be the best.
It's difficult to give a more explicit answer without seeing the code for your page.