Quantcast
Channel: SharePoint 2013 - Using SharePoint Designer, InfoPath and Other Customizations forum
Viewing all articles
Browse latest Browse all 9368

What's the correct way to add CSS and JavaScript to a master HTML

$
0
0

This issue is that my linked CSS and JavaScript files are loading below the <body> tag, rather than being in the head.

Should I be doing something like this?

<!--SPM:<SharePoint:CssRegistration runat="server" Name="/sites/test/Style Library/custom.css" After="SharepointCssFile" />-->

<!--SPM:<SharePoint:ScriptLink language="javascript" name="custom.js" OnDemand="true" runat="server" Localizable="false"/>-->

Viewing all articles
Browse latest Browse all 9368

Trending Articles