I recently pulled some custom script off the internet that makes my headers sticky on a list. I put it in a script editor. I initially thought it didn't work, but now I noticed that the script only works when I'm in edit page mode. I used the process and script provided from here http://robertmcquaig.com/sharepoint/sharepoint-sticky-headers/


2 Answers 2


Try adding the type="text/javascript" in the <script> tag references, like this:

<script type="text/javascript" src="http://yoursite/sites/yourlibrary/jquery.min.js"></script> 
<script type="text/javascript" src="http://yoursite/sites/yourlibrary/StickyHeaders_v2.9BETA.js"></script>

Also see these posts:

sharepoint 2013 / bootstrap.js / only working in edit mode

jQuery accordion on Wiki page only works in edit mode?


keep in mind that the script will not run when in post back, so, you have to save the page (stop editing) and then press Enter in the url address bar in your browser. Refresh with F5 may still not work!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.