[buddypress-trac] [BuddyPress] #5208: enqueues buddypress.js

buddypress-trac noreply at wordpress.org
Thu Oct 24 21:41:31 UTC 2013


#5208: enqueues buddypress.js
--------------------------+------------------------------
 Reporter:  bassjobsen    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Core          |     Version:  1.8.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by bassjobsen):

 Hello,

 Thanks for your response. I have to say, sorry cause i made a mistake my
 fix seems not to load buddypress.js at all (which fix my error, but broke
 other things).

 I still got a problem with buddypress.js and it's inline cookie and other
 plugins.

 Cause i load the script deferred the document ready already fired (or
 better happened).
 So the document ready functions are fired after reading. The plugins are
 at the end of the source and not read (exist) when the functions run.

 So maybe this not a bug but a request.
 You will help my plugin function when moving the plugin to the start of
 the source. Something like:

 {{{/* jQuery Easing Plugin, v1.3 -
 http://gsgd.co.uk/sandbox/jquery/easing/ */
 jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend...
 /* jQuery Cookie plugin */
 jQuery.cookie=function(name,value,options)...
 /* ScrollTo plugin - just inline and minified */
 ;(function($){var h=$.scrollTo=function(a,b,c)...
 /* jQuery querystring plugin */
 eval(function(p,a,c,k,e,d){e=function(c)....

 var jq = jQuery;

 // Global variable to prevent multiple AJAX requests
 var bp_ajax_request = null;
 // AJAX Functions
 jq(document).ready( function() {
         /**** Page Load Actions
 *******************************************************/}}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5208#comment:2>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list