Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 1
My CDN doesn't seem to work.
I wanted to use paper.js in my code. But it doesn't recognize the "paper" project that makes paper.js work. So I'm guessing that it counts my code's own javascript file first, and then gets the cdn? I couldn't figure out the problem with this one. I'd be glad if someone could help with it? Here's my code: https://code.sololearn.com/W2A5To6K2VM8/?ref=app
12 Respostas
+ 6
Hmm.. if you go onto your web browser, and copy the link for the paper-full.js, will it load on your phone? Iām wondering that maybe it doesnāt load correctly.
+ 4
I would put the paper.install(window) line inside window.onload, so everything is fully loaded when it starts.
+ 4
Hmm... maybe wrap the code in an onload event for the script.
+ 4
Yes, something like that. You could also attach an onerror event if it fails to load.
+ 2
Mende-de Åolar Ć½aly bolĆ½ar.HaƧanda jquery cdn bilen Ƨagyramda kƶplenƧ iÅlƤnok. Google cdn we Microsoft cdn ÅolaÅ haĆ½sam bolsa biri iÅleĆ½Ć¤r beĆ½lekisi iÅlanƶk. Eger paper js baÅga cdn-y bar bolsa barlap gƶr belki iÅlƤr.
+ 2
Howwa kompyuterde meselesiz ishleya yone telde bir problema bar bolaymasa
+ 1
Rowsej It still doesn't recognize it. The thing is, it works on my laptop. But it doesn't in my phone. It actually doesn't matter if it is inside or outside of the window.onload, as long as it's installed before i get to work.
+ 1
Rowsej it does open the file in web browser.
+ 1
Maksat Orazsahedow kompyuterde ishlap dur. Bir telefonda bolanok. Yada telefon programmasynyn ishleyshinde bir problema bar bolaymasa. Kompyuterde browserdan giryanda.
+ 1
Rowsej nice idea actually. So that we know if the script gets loaded or not? So i should probably use console.log("msg")?
+ 1
Rowsej the strange part is that, when i checked it once more before doing what you told me, it worked.. without any changes