bgiframe Documentation Added

I have started adding documentation to this very blog for my jQuery plugins. You can find the first set of docs for the bgiframe plugin here.

And don’t forget to check out the great progress on the new jQuery Plugins site. You can see the bgiframe’s project site here. While your there feel free to rate it, grab the latest release, request a feature or report a bug.

2 Responses to “bgiframe Documentation Added”

  1. George Adamson Says:

    Hi Brandon, I have some minor tips/fixes for your excellent bgiframe plugin…

    1. The selector “iframe.bgiframe” does a deep search and can cause a slight delay when there are alot of child elements. Using “>iframe.bgiframe” instead helped alot.

    2. I found that the check for an existing bgiframe using “if ( !$(’iframe.bgiframe’, this)[0] )” fails in some editions of IE6. Changing it to “if ( $(’>iframe.bgiframe’,this).length == 0 )” seems to fix it.

    3. Again for performance, I found it helpful to check for existing iframes at the start of the plugin rather than after building the html, so I changed the browser-test line to include a check for any items that do not already have a bgiframe: “if ( !($.browser.msie && typeof XMLHttpRequest == ‘function’) || this.not(’[>iframe.bgiframe]‘) == 0 ) return this;”

    (Tested with jQuery 1.1.1)

    Kind regards, George

  2. Brandon Aaron Says:

    Thanks George for the great ideas on increasing performance! I’ll for sure be implementing them soon.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>