$(document).ready(function(){ $('html').find('style').remove(); $('html').find('script').remove(); });