I've created a new ASPX page in the root of an O365 site collection (not in Site Pages or Pages, just in the very root folder via the All Files view in SharePoint Designer), and struggling to work out how to include the required SP.JS libraries that get loaded as standard in a Web Part Page.
I've tried a few different things, including the suggested
<Sharepoint:ScriptLink> tags I've seen mentioned elsewhere; also tried a direct
<script> tag to the literal file locations inside the /_layouts folder.
Neither seems to work and I'm using a verbatim copy of some JS that works fine on a web part page.
Any ideas? This seems to be one of those questions there are a ton of answers to but none seem to work for me.