Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

285
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda