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

338
Visualizações
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 Respostas
Responde à pergunta

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 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