Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author bradvin

    (@bradvin)

    Hi there, and thanks for using FooGallery!

    We had to make a call between content scanning or just adding the script to the footer.

    For content scanning, when it comes time to output the header, we would have to scan the content to see if it contains the [foogallery] shortcode and then based on that gallery id, we would have to load the template css and js. On single posts this is not too bad, but when showing archives or categories this becomes a problem. Extra problems come in when we eventually start supporting widget areas.

    So we went with the lesser of the 2 evils and enqueue the files when the shortcode is output. This means fewer database calls, but it does mean non HTML5 validation.

    Perhaps we can have a setting to allow you to choose which method you would like? What do you think would be best?

    Thread Starter oliblake

    (@oliblake)

    I think it would be a good idea to have a setting to allow users to choose the load method depending on how they are using the gallery.

    Thread Starter oliblake

    (@oliblake)

    Hi Bradvin,

    Just wondering if you will be updating the plugin to include the setting to allow users to choose the method?

    Thanks,

    oliblake

    Plugin Author bradvin

    (@bradvin)

    Hi oliblake,

    Yes, I will be updating the plugin to include this setting. Follow the github repo to get all the latest updates we make. I will also post here so you can test it out before I push it live

    Thread Starter oliblake

    (@oliblake)

    Hi Bradvin,

    That’s good news. I will keep an eye on your github.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Foogallery adds default.css to footer’ is closed to new replies.