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

330
Vistas
JsFiddle: Any way to use a separate x.js to test isJsFileLoaded()

[2021.10.20 Edited to add sample code about the question.] First time user of JsFiddle. Just discovered :)

I have an html plus js page, which tests ok from a server.

To load the file, html has

<script src='x.js'></script> 

I have a function

function isLoaded() { 
 return Boolean(document.querySelector('script[src=\"x.js\"]')); }

and it works.

I would like to know if I can test the above from the free version ofJsFiddle? If so, how do I specify (add) the x.js file to the JsFiddle ide?

Thank you!

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Since posting this I learned about the following way to get around my problem.

Serve x.js from a server example.com and add to the HTML section

<script src='https://example.com/x.js'> </script>

I still do not know if jsFiddle has the functionality to accept by upload a file, and serve it the above way internally, without having to use an external server. If not, hopefully this would be available in a future version of jsFiddle.

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