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

230
Vistas
How can I load an image without use html?

How can I load a image without add html element?

I'm making a game with typescript. Right now, I'm stopped by loading image.

We can use HTML to load image, and then use 'document.getElementBy()' but It will let code be too unclean:

<img src = "..."> 
<!-- What if a need hundred of image here? -->

And I don't want to switch to html tab every time, after I typed in , I don't need html anymore, and leftover are all done by typescript.

Are there any way to load image in javascript / typescript only?

LoadImage("...") // and gives you a image

ps: I don't want css too because it's even worse.

about 4 years ago · Juan Pablo Isaza
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