Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(document).ready(function() {
- /*
- * A IE javascript detection function from:
- * http://james.padolsey.com/javascript/detect-ie-in-js-using-conditional-comments/
- */
- var ie = (function(){
- var undef,
- v = 3,
- div = document.createElement('div'),
- all = div.getElementsByTagName('i');
- while (
- div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->',
- all[0]
- );
- return v > 4 ? v : undef;
- }());
- /*
- * Now using the function above, stop the infinitescroll javascript from operating.
- * Notes:
- * - Change "#main_blog" to the "Content Seletctor" your are using under your Infinite Scroll settings
- * - Use a "try" in case we are not on a page where the infinitescroll javascript is not loaded.
- */
- try
- {
- if (ie < 9 ) {
- $("#main_blog").infinitescroll("pause");
- }
- }
- catch(err)
- {
- //Handle errors here
- }
- });
Add Comment
Please, Sign In to add comment