Closed paulgibbs closed 7 years ago
@paulgibbs Good question, that I'm not sure of the answer to, seems on face of it to have no reasoning.
Have we tested commenting out Nouveau's loading?
For that matter why is the BP JS file re-enqueued ( as per your original ticket title)?
I haven't looked in the Git history for that file yet, maybe the commit message might reveal intent. Perhaps it was just to be totally isolated and stand-alone from Core, and not rely on Core's JS scripts. (at-mentions is one I would think we could want to always have in our core, though)
It's a mystery, this is why I like proper comments not just thinking phpdocs - as lovely as they are - are sufficient, some things need the back story written :)
Looking further it seems to me the reason for this is simply to override the various handles and array dependencies to ensure that we load after nouveau css not BP css, on that basis this seems fine to me, so closing this ticket, if it is actually a problem please re-open and it can be looked at further.
In bp_nouveau_messages_enqueue_styles() it loads the mentions CSS, which is loaded in core in bp_activity_mentions_script().
Does anyone know the background why this was done, and what other core scripts are re-declared like this?