479 reputation
522
bio website douglasweb.com
location Virginia Beach, VA
age 49
visits member for 3 years, 7 months
seen 19 hours ago

SharePoint Developer, Admin, and Evangelist. Surfer of Social Networks. Cigar Smoker. Beer Drinker. Conservative. Freemason. All in no particular order.


Aug
6
comment JavaScript is breaking my theme in SharePoint 2013
It's not permissions, they can see the theme on every OTHER page in the site. From what I can determine, it's something in the execution path between loading the theme and executing javascript. The script tag is stopping the theme from being loaded. But it's a bugger to troubleshoot.
Aug
4
awarded  Notable Question
Aug
4
asked SharePoint 2010: Open .webpart file in Web Part Gallery in browser like .xml file
Aug
3
comment JavaScript is breaking my theme in SharePoint 2013
Scripting is automatically removed from the Web Page. I HAVE to put it in a web part.
Aug
3
comment JavaScript is breaking my theme in SharePoint 2013
I have tried all the links you provided. The JavaScript DOES fire, but the theme is still not loaded.
Aug
3
comment JavaScript is breaking my theme in SharePoint 2013
I have done that, I moved the code to a Script Editor, and I still have the same problem.
Aug
3
revised JavaScript is breaking my theme in SharePoint 2013
Added Update 3 about Office 365 behavior.
Aug
3
comment JavaScript is breaking my theme in SharePoint 2013
I did that. Same result. Could you update your answer to give the correct way to call JavaScript (not jQuery) on page load?
Aug
3
comment JavaScript is breaking my theme in SharePoint 2013
I started with jQuery, I eliminated it to narrow down the problem. The problem is occurring with nothing more than an empty <script type="text/javascript"></script> tag.
Aug
3
comment JavaScript is breaking my theme in SharePoint 2013
I am not using jQuery at all, to eliminate that as a variable. If I just have a <script></script> tag, the page loads fine with the theme. If I have a <script type="text/javascript"></script> tag, the theme is omitted.
Aug
3
revised JavaScript is breaking my theme in SharePoint 2013
Update 2 to include screenshots and document further testing.
Aug
3
comment JavaScript is breaking my theme in SharePoint 2013
As for your last paragraph, the script DOES execute, it's just that the theme isn't getting loaded. I have more than my share of JavaScript errors, but the result is the JavaScript doesn't execute, and the rest of the page loads fine. That is not the behavior I am seeing.
Aug
3
comment JavaScript is breaking my theme in SharePoint 2013
I turned MDS back on, now I get theme on every page, but still have the problem on my script page.
Aug
3
comment JavaScript is breaking my theme in SharePoint 2013
I went into "Edit Source" and cleared out all the web part code (seems deleting a web part isn't enough anymore). I put just the label in the source. I then added a script editor with the opening and closing script tag. I STILL get the white background, no theme.
Aug
3
comment JavaScript is breaking my theme in SharePoint 2013
If you say so, but when adding a Script Editor, this is the text under "About the Part": "Script Editor Allows authors to insert HTML snippets or scripts." So, Microsoft isn't very clear about it, either.
Aug
3
comment JavaScript is breaking my theme in SharePoint 2013
I disabled MDS and now Anonymous users don't see any themes at all. That's the EXACT functionality I had with 2010! I had to manually update the master page to set a theme for Anonymous users. So, turning off MDS made things worse.
Aug
3
comment JavaScript is breaking my theme in SharePoint 2013
The script is not referenced, it is manually entered into a Script Editor on the page. The page is accessible to Anonymous users, otherwise they wouldn't see the page at all.
Aug
3
comment JavaScript is breaking my theme in SharePoint 2013
I changed to an OOTB theme, same behavior.
Aug
3
revised JavaScript is breaking my theme in SharePoint 2013
Updated to reflect testing against a Script Editor.
Aug
3
comment JavaScript is breaking my theme in SharePoint 2013
Well, my research indicated that using a CEWP was the way to go. I will go look for the page where I found that answer. But a CEWP allows a content link, and a Script Editor doesn't. More importantly, using a Script Editor, I get the same error (Updated my post).