Permalink
Browse files

Minified new version. Added debug switch between min and not min files.

  • Loading branch information...
1 parent 163f28c commit 642a0693dc777cdd007d1dc860e4ce9478655bc1 @samcleaver samcleaver committed Jun 28, 2011
Showing with 7 additions and 4 deletions.
  1. +2 −2 jquery.infinitescroll.min.js
  2. +5 −2 wp_infinite_scroll.php

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -4,7 +4,7 @@
Version: 2.0b2.110628
Plugin URI: http://www.infinite-scroll.com
Description: Automatically loads the next page of posts into the bottom of the initial page.
-Author: dirkhaim & Paul Irish & Beaver6813
+Author: dirkhaim, Paul Irish, Beaver6813
Author URI: http://www.infinite-scroll.com
License : http://creativecommons.org/licenses/GPL/2.0/
@@ -206,7 +206,10 @@ function wp_inf_scroll_init()
{
/* I always hated the way the old plugin outputted... so did my IDE... */
echo "<script type=\"text/javascript\"> if (!(window.jQuery && jQuery.fn.jquery >= '1.5')){document.write(unescape(\"%3Cscript src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js' type='text/javascript'%3E%3C/script%3E\"));}</script>";
- echo "<script type=\"text/javascript\" src=\"$plugin_dir/jquery.infinitescroll.js\"></script>";
+ if($debug=="true")
+ echo "<script type=\"text/javascript\" src=\"$plugin_dir/jquery.infinitescroll.js\"></script>";
+ else
+ echo "<script type=\"text/javascript\" src=\"$plugin_dir/jquery.infinitescroll.min.js\"></script>";
echo " <script type=\"text/javascript\">
jQuery(document).ready(function($) {
// Infinite Scroll jQuery+Wordpress plugin

0 comments on commit 642a069

Please sign in to comment.