From 7d2a704c9c638c14b91481b9f08e8e1145d86fe3 Mon Sep 17 00:00:00 2001 From: Stefan Breunig Date: Thu, 14 Feb 2013 19:21:21 +0100 Subject: [PATCH] more perf on mobile --- code/boot.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/boot.js b/code/boot.js index 1d9ef3c8..2d64eef6 100644 --- a/code/boot.js +++ b/code/boot.js @@ -40,6 +40,12 @@ window.setupStyles = function() { '#sidebar input, h2 { width:'+(SIDEBAR_WIDTH - 2*4)+'px !important } ', '#sidebar > *, #gamestat span, .imgpreview img { width:'+SIDEBAR_WIDTH+'px; }'].join("\n") + ''); + + if(L.Browser.mobile) { + $('head').append(''); + } } window.setupMap = function() {