I'm trying to show "Test" depending on the screen size:
<script type="text/javascript">
jQuery(function( $ ){
if($(window).width() >= 960){
document.write('Test');
}
});
</script>
Due to a jQuery-conflict, I had to put the script within "jQuery(funcion..."
So the script works. However, the entire site loads normally, then goes blank once the script is executed, with only "Test" showing on screen. Does anyone now why?