Lightbox Plus 1.6.6 – JavaScript in footer, load speed improvement, Colorbox Update

I’m pleased to announce the release of Lightbox Plus 1.6.6 for WordPress.  Change log details are below.

1.6.6

  • Tested with WordPress 2.9.1
    • Only works with WordPress 2.8+ due to the use of the $in_footer parameter used in the wp_enqueue_script() function.
  • Moved all possible JavaScript to the footer to improve load speed
    • Requires theme has the wp_footer() hook
  • Cleaned up jQuery call to correctly work in no conflict mode per definition.
    • Updated Colorbox to 1.3.6 which include the following fixes
    • Small change to make Colorbox compatible with jQuery 1.4
    • Fixed a bug introduced in 1.3.4 with IE7′s display of example 2 and example 3, and auto-width in Opera.
    • Fixed a bug introduced in 1.3.4 where colorbox could not be launched by triggering an element’s click event through JavaScript.
    • Minor refinements.
    • Event delegation is now used for elements that ColorBox is assigned to, rather than individual click events.
    • Additional callbacks have been added to represent other stages of ColorBox’s lifecycle. Available callbacks, in order of their execution: onOpenonLoadonComplete,onCleanuponClosed These take place at the same time as the event hooks, but will be better suited than the hooks for targeting specific instances of ColorBox.
    • Ajax content is now immediately added to the DOM to be more compatible if that content contains script tags.
    • Focus is now returned to the calling element on closing.
    • Fixed a bug where maxHeight and maxWidth did not work for non-photo content.
    • Direct calls no longer need 'open:true', it is assumed. Example: $.fn.colorbox({html:"<p>Hi</p>"});
    • Changed $.fn.colorbox.element() to return a jQuery object rather the DOM element.
    • jQuery.colorbox-min.js is compressed with Google’s Closure Compiler rather than YUI Compressor.
    • Added 'innerWidth' and 'innerHeight' options to allow people to easily set the size dimensions for ColorBox, without having to anticipate the size of the borders and buttons.
    • Renamed 'scrollbars' option to 'scrolling' to be in keeping with the existing HTML attribute. The option now also applies to iframes.
    • Bug fix: In Safari, positioning occassionally incorrect when using ’100%’ dimensions.
    • Bug fix: In IE6, the background overlay is briefly not full size when first viewing.
    • Bug fix: In Firefox, opening ColorBox causes a split second shift with a small minority of webpage layouts.
    • Simplified code in a few areas.
  • Special thanks for navjotjsingh for the include, excude fix for WordPress built in gallery

You can download it from WordPress.org or 23systems download Lightbox Plus 2.4.6 directly.

As usual you can get support at the Lightbox Plus message board.

This entry was posted in Lightbox Plus, Plugins, Wordpress and tagged , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <p> <pre lang="" line="" escaped=""> <q cite=""> <strike> <strong>

Stop SOPA