Trying to display content depending on the viewport size
When entering in the URI it will say it has loaded but the content wont show.
However if i hit refresh / F5 then it will show

JQUERY
$(document).ready(function() {
var viewportWidth = $(window).width();
if(viewportWidth > 550){
$("#nivo").load("nivo.php");
}
});

HTML
<div id="nivo"></div>


Many Thanks in advanced