Skip to content
Create a gist now

Instantly share code, notes, and snippets.

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.
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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.