This is probably a real NOOB question but I've been struggling to link a source file into my page code. I want to move the cookie code out of the page code.
This is being done in a subsite. The code is in the subsite's landing page in a Script Editor web part and cookies.js would be in Site Assets.
I've tried many different relative URLs and even put an absolute URL in the src statement and nothing seems to work.
Most of the examples doing something similar are using master pages and Style Library which have different relative URLs.
I thought I had a solution when I saw Mark Rackley's work using a content editor web part with the same subsite setup
but that doesn't work either. I want to do the same thing with other common code in View and Form pages but if I can't it get to work here...