Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

339
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!