Ready to get started?Download WordPress


Use Google Libraries
noConlict (3 posts)

  1. bassjobsen
    Posted 9 months ago #


    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.



  2. Jason Penney
    Plugin Author

    Posted 9 months 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
    Posted 9 months 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.


You must log in to post.

About this Plugin

About this Topic