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.

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

  1. Jack
    Posted 4 years ago #

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

    How can I get this code in an external file?


  2. techotronic
    Plugin Author

    Posted 4 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?


  3. Jack
    Posted 4 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 :)


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • jQuery Colorbox
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic