Scripts not loading when logged out of 5.7

Permalink
Hey all,

I just got a site live this aft. I had been working on it while the site was private, so I had to be logged in. However, I found that after logging out, I've got a few scripts that aren't loading - and oddly, it isn't consistant.

I have a packaged up custom theme that I built, and am using a global header-html.php and footer-html.php in the elements folder, so the code should be consistant. Alas.

In the console on the homepage I get no errors, but then through the rest of the site, I get Reference Errors - only on a select couple of scripts.

Anyone seen anything like this before?

juddc
 
juddc replied on at Permalink Reply
juddc
Got it. If anyone else runs across this when building with 5.7, I had to register Jquery in the page_theme.php file.

public function registerAssets()
{
   $this->requireAsset('javascript', 'jquery');
}