Page min-height is miscalculated when I add JQM dynamically.

Page min-height is miscalculated when I add JQM dynamically.

See fiddle: http://jsfiddle.net/C9emW/1/

I am trying to load JQM only for specific screen size, so I am trying to load it dynamically, but somehow this causes an error where the page min-height is calculated wrong, and I end up with a scrollbar. Any idea why this happens and how to fix it?