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

278
Visualizações
What is the best way to send a script with the initial index.html file?

I am currently using this method in the index.html file; however, I want my javascript in a separate file, not inline.

<script> ... my code </script>

After some research, I see there are server side includes which appear outdated but I'm not sure.

There are also templating engines for express.

And thirdly, I imagine there is some way to concatenate the file using node libraries.

And fourthly, there are build tools such as webpack and grunt. I am currently using webpack.

How can I parse all these options, and select the best one.

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

0

The most conventional method people use is the 'src' attribute, which allows you to specify the URL of an external script file. Syntax:

<script type='text/javascript' src='./path/to/your/script.js'/>
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