Foren

LR7 - JQuery & Javascript topics

thumbnail
Eric COQUELIN, geändert vor 7 Jahren.

LR7 - JQuery & Javascript topics

Expert Beiträge: 254 Beitrittsdatum: 03.11.13 Neueste Beiträge
Dear all,

I have noticed today that Liferay 7 was bundled with JQuery in addition to YUI and MetalJs.

There is nothing in the documentation which refers to JQuery. With a routine from the browser, I get the version.

$.fn.jquery="2.1.4"


However, I would like to understand the strategy as I'm wondering:
  • how the three libraries can run in // without any conflict
  • How we could potentially deactivate unused library but I'm afraid that different components use different libraries and as a result you need all of them


From the default landing page, after login, the page requires 1Mb (without cache).

Please provide me with any article/documentation giving more details regarding the libraries available by default with LR7.
thumbnail
David H Nebinger, geändert vor 7 Jahren.

RE: LR7 - JQuery & Javascript topics

Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
Jquery is used to support bootstrap.
AUI is used to support legacy porlet javascript.
Metal is used to support new Liferay javascript.

You can't disable or remove any of these without throwing out the supported functionality.
thumbnail
Eric COQUELIN, geändert vor 7 Jahren.

RE: LR7 - JQuery & Javascript topics

Expert Beiträge: 254 Beitrittsdatum: 03.11.13 Neueste Beiträge
That's clear, thank you.