Skip to content

Instantly share code, notes, and snippets.

View lostuser23's full-sized avatar

Juan Manuel Rodriguez lostuser23

View GitHub Profile
@alirobe
alirobe / SP2010-chromeScrollingFix
Last active January 13, 2017 18:54
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 http://withinsharepoint.com/archives/256 or http://withinsharepoint.com/archives/210
if (jQuery.browser.webkit) {
jQuery(document).ready(function () {
var interval;
function loopCheck() {
if (typeof (_spBodyOnLoadWrapper) !== "undefined" && _spBodyOnLoadCalled == false)
_spBodyOnLoadWrapper();
else
window.clearInterval(interval);