Skip to content

Comments

Fix jquery::framework to use WebAsset, and add "defer=false" attribute#13

Merged
laoneo merged 2 commits intoDigital-Peak:j4/defer/jsfrom
Fedik:pull22460
Nov 19, 2018
Merged

Fix jquery::framework to use WebAsset, and add "defer=false" attribute#13
laoneo merged 2 commits intoDigital-Peak:j4/defer/jsfrom
Fedik:pull22460

Conversation

@Fedik
Copy link

@Fedik Fedik commented Nov 17, 2018

This is fix/update for joomla#22460

Because jquery::freamwork not always in use after WebAsset was introduced.

{
"name": null,
"js": ["jquery.min.js"]
"js": ["jquery.min.js"],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we not do these kind of changes un its own pr in the main repo?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that true, I even have plan to do it for whole jquery.php
but I have include it here, because without this your pull not work

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, no, sorry, I confused with settings.json
settings.json changes must be here, because we going to add attribute (defer:fase) to jquery.min.js, which already exist in settings.json

@Fedik
Copy link
Author

Fedik commented Nov 18, 2018

you can ignore changes for jquery::freamwork, I will do PR for whole jquery.php
but you need changes from settings.json to make your pull work after joomla#22435 was merged

@laoneo
Copy link
Member

laoneo commented Nov 18, 2018

Actually the pr in the main repo dies work. What ia broken there?

@Fedik
Copy link
Author

Fedik commented Nov 18, 2018

@laoneo just check how it work on latest 4.0-dev, you will see a looot "jQuery undefined" in browser console 😉
especially when enable Debug, because a DebugBar depends from jQuery

and undefined cssVars()

@laoneo
Copy link
Member

laoneo commented Nov 19, 2018

Ah wait, sorry. I was in a total different pr joomla#23062.

@laoneo laoneo merged commit 0c1551d into Digital-Peak:j4/defer/js Nov 19, 2018
@Fedik Fedik deleted the pull22460 branch November 19, 2018 10:05
laoneo pushed a commit that referenced this pull request Mar 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants