Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

192
Visualizações
Lazy load for "magnific.popup.js"

Is there a way of initializing the magnific.popup.js after the page loads?

I do not prefer loading it with the rest of the scripts as I only need it, and trigger the popup on a button click.

The ultimate goal is to not see it listed on the report of PageSpeed Insights, what would be your suggestion?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You can add your script dynamically.

function **functionname**(){   
    var script = document.createElement('script');
    
    script.setAttribute('src',**path or url script**);
    
    document.head.appendChild(script);
}

Call the function as you need the script

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda