(function(){ var lang = 'en'; var path = window.location.pathname; if(path.indexOf('/pt/') >= 0 || path.indexOf('.com.br') >= 0) lang = 'pt'; var api = window._wptUrl || "https://api.eniosoft.com"; var c = document.getElementById("wp-wpt-check") || document.createElement("div"); c.id = "wp-wpt-check"; if(!c.parentNode) document.body.appendChild(c); if(lang == 'pt'){ var M = { loadTime:{l:"Load Time",d:"Tempo total ate o evento onLoad. Inclui DNS, conexao, download e renderizacao.",t:"Otimize imagens, ative cache, use CDN, minifique CSS/JS"}, TTFB:{l:"TTFB",d:"Tempo ate o primeiro byte do servidor. Mede resposta do servidor e rede.",t:"Use cache de pagina, troque de hospedagem, ative CDN"}, SpeedIndex:{l:"Speed Index",d:"Quao rapido o conteudo visivel e exibido. Menor = melhor experiencia.",t:"Priorize conteudo acima da dobra, adie render-blocking"}, firstPaint:{l:"First Paint",d:"Quando o navegador renderiza o primeiro pixel. Marco inicial.",t:"Inline CSS critico, adie JS, otimize fontes"}, requests:{l:"Requests",d:"Numero total de requisicoes HTTP (CSS, JS, imagens, fontes).",t:"Combine arquivos, remova plugins desnecessarios, lazy load"}, bytesIn:{l:"Page Size",d:"Peso total da pagina em KB. Inclui HTML, CSS, JS, imagens.",t:"Comprima imagens (WebP), ative Brotli, remova CSS/JS nao usado"}, domElements:{l:"DOM Elements",d:"Quantidade de elementos HTML. Muitos = renderizacao lenta.",t:"Evite page builders pesados, simplifique o HTML"} }; var MK = ["loadTime","TTFB","SpeedIndex","firstPaint","requests","bytesIn","domElements"]; } else { var M = { loadTime:{l:"Load Time",d:"Total time until the browser onLoad event. Includes DNS, connection, download and rendering.",t:"Optimize images, enable caching, use CDN, minify CSS/JS"}, TTFB:{l:"TTFB",d:"Time to First Byte from the server. Measures server response and network latency.",t:"Use page caching, upgrade hosting, enable CDN"}, SpeedIndex:{l:"Speed Index",d:"How quickly visible content is displayed. Lower is better.",t:"Prioritize above-the-fold content, defer render-blocking resources"}, firstPaint:{l:"First Paint",d:"When the browser first renders any pixel. The starting milestone.",t:"Inline critical CSS, defer non-essential JS, optimize fonts"}, requests:{l:"Requests",d:"Total HTTP requests (CSS, JS, images, fonts).",t:"Combine files, remove unnecessary plugins, lazy load images"}, bytesIn:{l:"Page Size",d:"Total page weight in KB. Includes HTML, CSS, JS, images.",t:"Compress images (WebP), enable Brotli, remove unused CSS/JS"}, domElements:{l:"DOM Elements",d:"Number of HTML elements. Too many = slow rendering.",t:"Avoid heavy page builders, simplify HTML structure"} }; var MK = ["loadTime","TTFB","SpeedIndex","firstPaint","requests","bytesIn","domElements"]; } c.innerHTML = "" + "