mysociety/mzalendo — Issue #185: Switching between mobile and desktop modes 
Author: evdb
Created: 2012-01-03 14:03:05+00:00
State: open

from supercool/mzalendo#10

Possibly not worth implementing - won't affect many real users.

Currently the mode is only detected when the page loads. Instead we could add a trigger to the resize event that triggers the display logic. This would also allow the mobile and desktop js files to be merged as the logic for what to do would be in the functions, rather than having functions with the same name coming from different sources. (I doubt that the increase in file size would be significant).

Flagging this early on as it will change how the js is written, so best to decide which way to go before there is too much of it :)