Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Fix an issue where occasionally the JavaScript that runs a SharePoint 2010 page's dynamic elements (ribbon, scrolling, etc) fails to initialise in Webkit browsers.
//via or
if (jQuery.browser.webkit) {
jQuery(document).ready(function () {
var interval;
function loopCheck() {
if (typeof (_spBodyOnLoadWrapper) !== "undefined" && _spBodyOnLoadCalled == false)
// Give SP a chance..
setTimeout(function () { interval = window.setInterval(loopCheck, 30); }, 120);

excellent solution, thanks both to you and Maarten for the clean fix!

Great solution!

Ofer-Gal commented Jan 13, 2017

Did not work for me.
Should it be in the <head> section of the HTML that makes the Master in SP2013?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment