Reputation
501
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
1 5 22
Impact
~54k people reached

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).
Aug
3
asked JavaScript is breaking my theme in SharePoint 2013
Aug
1
asked Web Part Namespaces include class name in SharePoint 2010
Jul
18
answered How to get LookupValue in ItemUpdating
Jul
17
revised How do remove space at top of web part zone?
added 84 characters in body
Jul
17
accepted How do remove space at top of web part zone?
Jul
17
answered How do remove space at top of web part zone?
Jul
17
awarded  Notable Question
Jul
2
awarded  Curious