if (typeof jQuery === "undefined" || jQuery.fn.jquery !== '1.11.3') { var script_tag = document.createElement('script'); script_tag.setAttribute("type","text/javascript"); script_tag.setAttribute("src","https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js") script_tag.onload = main; // Esegue main() dopo che jQuery รจ stato caricato script_tag.onreadystatechange = function () { if (this.readyState == 'complete' || this.readyState == 'loaded') main(); } document.getElementsByTagName("head")[0].appendChild(script_tag); } else { main(); } function main() { jQuery( "#aimnews_osservatorio" ).load( "https://pminews.it/wp-content/themes/Avada-Child-Theme/widget_osservatorio.php",{'CANALE_NEWS': 'ultime-notizie', 'NUMERO_NEWS':'4','LARGHEZZA_BOX':'90%','ALTEZZA_BOX':'100%'}); }