Append element to top of body in jQuery
Use prepend
method:
$('body').prepend('<div id="fb-root"></div>');
You can use
$('#fb-root').detach().insertBefore('body>*:first');
Use prepend
method:
$('body').prepend('<div id="fb-root"></div>');
You can use
$('#fb-root').detach().insertBefore('body>*:first');