I am getting a maddening error trying to load an html page(with angular/javascript,etc) from a content editor inside a sharepoint 2013 aspx.page. I have several sites where I do the exact same thing(using the same template) and it works without issue.
This site page doesn't want to work using the exact same code. I am at my wits end as to why this is happening and throwing an error. Basically I get a blank page at the end because it keeps throwing errors about sp.js, then SP.Publishing and the SP.Pub being undefined and then it doesn't do anything after that, except give me a blank page.
I already am using
<script type="text/javascript">
$(document).ready(function () {
ExecuteOrDelayUntilScriptLoaded(function () { }, "sp.js");
});
</script>
I have also put the Microsoft.Ajax script on the page that defined Type but to no avail, still get the same error.
on the index html page, so this should be waiting for it to load, but it isn't.
I checked and double checked my code between the pages that are working without issue and this one and the markup is exactly the same, and the code is the same as well.
Does anyone know why this would be happening??
UPDATE: The crazy thing about this is, it works in edit mode when I apply the link but not once I go to the page directly...this is very irritating