WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Facebook Photo Fetcher
jQuery in footer (3 posts)

  1. swinggraphics
    Member
    Posted 4 years ago #

    I have all scripts load in the footer. FBF inserts inline script that needs jQuery to be loaded already. Can this be resolved without moving all JavaScript back to the head?

    http://wordpress.org/extend/plugins/facebook-photo-fetcher/

  2. swinggraphics
    Member
    Posted 4 years ago #

    This is the offending bit of code :

    <script type="text/javascript">
                jQuery(document).ready(function(){ jQuery(function(){
                    jQuery(".gallery-icon a").lightBox({
                        imageBlank:"http://gee.swinggraphics.com/wp/wp-content/plugins/facebook-photo-fetcher/jquery-lightbox/images/lightbox-blank.gif",
                        imageBtnClose:"http://gee.swinggraphics.com/wp/wp-content/plugins/facebook-photo-fetcher/jquery-lightbox/images/lightbox-btn-close.gif",
                        imageBtnNext:"http://gee.swinggraphics.com/wp/wp-content/plugins/facebook-photo-fetcher/jquery-lightbox/images/lightbox-btn-next.gif",
                        imageBtnPrev:"http://gee.swinggraphics.com/wp/wp-content/plugins/facebook-photo-fetcher/jquery-lightbox/images/lightbox-btn-prev.gif",
                        imageLoading:"http://gee.swinggraphics.com/wp/wp-content/plugins/facebook-photo-fetcher/jquery-lightbox/images/lightbox-ico-loading.gif"
                    }); }); });
    </script>

    It would be great to have this moved into a standard enqueue script function, with the option of putting it in the footer.

  3. damainman
    Member
    Posted 4 years ago #

    Have you figured this out?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Facebook Photo Fetcher
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic