WordPress.org

Forums

Use Google Libraries
noConlict (3 posts)

  1. bassjobsen
    Member
    Posted 1 year ago #

    Hello,

    The use of noConflict(), output direct to source breaks our defer loading plugin, see: https://github.com/bassjobsen/wp-defer-loading/issues/13.

    Maybe it will possible to enqueue this code too? See also: http://bassjobsen.weblogs.fm/wordpress-development-properly-load-javascript-set-dependency/. I understand enqueue in this case seems to create some overload.

    Other option can be to make the noConflict optional for your plugin.

    Thanks!

    http://wordpress.org/plugins/use-google-libraries/

  2. Jason Penney
    Member
    Plugin Author

    Posted 1 year ago #

    I used to enqueue a separate file for the noConflict, and I resisted changing it for a long time, but after a few hundred requests that I make it directly output rather than enqueue a separate script I gave in and now it's inlined.

    I'll give it some thought as to what I could do. I could probably detect your plugin and exclude jQuery from the list of scripts to load from google.

  3. bassjobsen
    Member
    Posted 1 year ago #

    Thanks for your response in the first place. Please let me know i you have found a solution. I think this will be very helpful cause it will fix two of my issues once. (https://github.com/bassjobsen/wp-defer-loading/issues/2 and https://github.com/bassjobsen/wp-defer-loading/issues/13) Issue 2 (use CDN) could be fixed by referring / recommending your plugin. I got some doubts about the profits of using CDN in combination with defer loading. But when by using your and mine plugin together people can make this decision for their self.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Use Google Libraries
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic