WordPress.org

Ready to get started?Download WordPress

Forums

jQuery Colorbox
[resolved] How to get the javascript code out of the ? (3 posts)

  1. Jack
    Member
    Posted 2 years ago #

    It begins with /* <![CDATA[ */
    var jQueryColorboxSettingsArray

    How can I get this code in an external file?

    http://wordpress.org/extend/plugins/jquery-colorbox/

  2. techotronic
    Member
    Plugin Author

    Posted 2 years ago #

    I put all JavaScript code into files.

    The Array you are referring to only contains settings that configure the Colorbox (like width, height and so on, everything you can configure in the backend) and no actual JavaScript code.

    There is no way the plugin would run without inserting the Array.

    Why do you want to remove it?

    Cheers,
    Arne

  3. Jack
    Member
    Posted 2 years ago #

    Well, I just noticed (again) that a lot of WordPress plugins put code in the head of pages. That makes scrolling through the source of the page quite long before actual content is reached. I read somewhere that this is not good for Google, so I was looking at how to make the head of the page as short and clean as possible :).

    Thanks for your explanation :)

    Jack

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic