Ah, I had assumed AnkiDroid was not reloading the page on each card, as the
other clients just update the card area with javascript.


On Fri, Apr 26, 2013 at 9:33 PM, Houssam Salem <notifications@github.com>wrote:

> In assets/card_template.html:
>
> > +                  imageHeight = imageHeight / scaleFactor;
> > +                  imageWidth = imageWidth / scaleFactor;
> > +              }
> > +
> > +              img.height = imageHeight;
> > +              img.width = imageWidth;
> > +          } else {
> > +              img.height = 0;
> > +              img.width = 0;
> > +              img.src = img.src;
> > +          }
> > +      }
> > +    </script>
> > +    <style>::style::</style>
> > +  </head>
> > +  <body class="mobile ::class::">
>
> To me it feels a bit excessive to include a script and run it on every
> card when we know the values aren't going to change.
>
> The script gives me "mobile android linux js" inside AnkiDroid on a 2.3
> and 4.2 Android device. It think it's overall just easier to manually add
> those four.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/ankidroid/Anki-Android/pull/42/files#r3975935>
> .
>