var loaded = false;
<script src="https://cdn.tiny.cloud/1/api key/tinymce/6/tinymce.min.js" referrerpolicy="origin" onload = "loaded = true;"></script>
<!--TinyMce Fallback-->
<script>
if(loaded != true) {
var s = document.createElement("script");
//s.type = "text/javascript";
s.src = "tinymce/js/tinymce/tinymce.min.js";
document.head.appendChild(s);
}
</script>
In case the link inside the src fails I would like to load the same js code from my pc but the above code fails does anyone know why