= hash.indexOf('?');
if (searchIndex > -1) {
hash = hash.substring(0, searchIndex);
}
var dynamicHash = constructDynamicPathOrHash(hash.split('/'));
skeleton = skeletonMap[hash] || skeletonMap[dynamicHash];
} else {
var path = window.location.pathname;
var dynamicPath = constructDynamicPathOrHash(path.split('/'));
skeleton = skeletonMap[path] || skeletonMap[dynamicPath];
}
if (!skeleton) return;
var sk = document.createElement('script');
sk.async = true;
var publicPath = 'https://static.huolala.cn/uappweb-uapp/836926/';
if (window.location.origin.indexOf('file://') === 0) publicPath = './';
sk.src = publicPath+'_/skeleton'+skeleton+'.js';
var head = document.head || document.getElementsByTagName('head')[0];
head.appendChild(sk);
} catch(e) {
console.error('骨架屏脚本异常', e);
}
})()