+ 1

How to use defer in the SoloLearn code editor?

In e.g. Visual Studio Code I use the "defer" option by using for example <script defer src="script.js"></script> but how do I use defer in the SoloLearn editor?

6th Apr 2020, 6:28 PM
Wesley van Peer
Wesley van Peer - avatar
2 odpowiedzi
+ 2
Found this on Code Playground https://code.sololearn.com/WQq06b36d8Rn/#js
6th Apr 2020, 9:23 PM
ODLNT
ODLNT - avatar
+ 1
I guess that defer and/or async keyword doesn't works in sololearn code editor (at least for website version): they are not working when you try to use it in a page located in your file system (opened with the file:/// protocole, not trough a localhost)... and sololearn code playground seems to deal with the sources by writing dynamically in the output iframe (in opposition to load it from sololearn server) despites the fact that source code is send to server before every run (sounds like a check / stat collector only request).
7th Apr 2020, 8:11 AM
visph
visph - avatar