PT Ao adicioná-los no campo ?async JS?, Autoptimize irá usar o parâmetro async fazendo com o que o navegador carregue estes arquivos de forma assíncronamente (i.e
PT Ao adicioná-los no campo ?async JS?, Autoptimize irá usar o parâmetro async fazendo com o que o navegador carregue estes arquivos de forma assíncronamente (i.e
EN By adding them in the comma-separated ?async JS? field, Autoptimize will add the async flag causing the browser to load those files asynchronously (i.e
Potukara | Ingarihi |
---|---|
campo | field |
js | js |
autoptimize | autoptimize |
navegador | browser |
carregue | load |
arquivos | files |
i | i |
e | e |
PT solução baseada em Promises (compatível com async/await)
EN Promise-based solution (async/await compatible)
Potukara | Ingarihi |
---|---|
solução | solution |
baseada | based |
compatível | compatible |
PT Uso do atributo async ou defer nas tags <script>
EN Using the async or defer attribute on <script> tags
Potukara | Ingarihi |
---|---|
uso | using |
atributo | attribute |
ou | or |
nas | on |
tags | tags |
amp | amp |
gt | gt |
PT Os atributos async e defer informam ao navegador que ele pode continuar analisando o HTML ao carregar o script em segundo plano e, em seguida, executar o script após o carregamento
EN The async and defer attributes tell the browser that it may go on parsing the HTML while loading the script in the background, and then execute the script after it loads
Potukara | Ingarihi |
---|---|
atributos | attributes |
navegador | browser |
html | html |
script | script |
PT Scripts com o atributo async são executados na primeira oportunidade depois de concluírem o download e antes do evento de carregamento da janela
EN Scripts with the async attribute execute at the first opportunity after they finish downloading and before the window's load event
Potukara | Ingarihi |
---|---|
scripts | scripts |
atributo | attribute |
download | downloading |
carregamento | load |
janela | window |
s | s |
PT Isso significa que é possível (e provável) que os scripts com async não sejam executados na ordem em que aparecem no HTML
EN This means it's possible (and likely) that async scripts will not be executed in the order in which they appear in the HTML
Potukara | Ingarihi |
---|---|
provável | likely |
scripts | scripts |
executados | executed |
ordem | order |
aparecem | appear |
html | html |
PT Use async se for importante que o script seja executado no início do processo de carregamento.
EN Use async if it's important to have the script run earlier in the loading process.
Potukara | Ingarihi |
---|---|
use | use |
importante | important |
script | script |
processo | process |
carregamento | loading |
PT solução baseada em Promises (compatível com async/await)
EN Promise-based solution (async/await compatible)
Potukara | Ingarihi |
---|---|
solução | solution |
baseada | based |
compatível | compatible |
PT Este é um manipulador de eventos síncrono. Você não pode retornar uma Promise e você não pode usar async/await.
EN This is a sync event handler. You cannot return a Promise and you cannot use async/await.
Potukara | Ingarihi |
---|---|
manipulador | handler |
eventos | event |
retornar | return |
usar | use |
PT Este é um manipulador de eventos assíncrono. Uma Promise pode ser retornada ou use async/await.
EN This is an async event handler. A Promise can be returned or use async/await.
Potukara | Ingarihi |
---|---|
manipulador | handler |
eventos | event |
ou | or |
use | use |
PT Com a API Async Clipboard , você pode ler e gravar texto e dados de imagem (imagens PNG) programaticamente de e para a área de transferência do sistema
EN With the Async Clipboard API, you can programmatically read and write text and image data (PNG images) to the system clipboard
Potukara | Ingarihi |
---|---|
api | api |
você | you |
dados | data |
png | png |
programaticamente | programmatically |
E whakaatu ana i te 11 o nga whakamaoritanga 11