Foren

Performance problem in Liferay 6.0.6 CE

thumbnail
Miguel Ángel Júlvez, geändert vor 12 Jahren.

Performance problem in Liferay 6.0.6 CE

Junior Member Beiträge: 63 Beitrittsdatum: 29.03.11 Neueste Beiträge
Hi!!

I'm having a performance problem that I don't know fix it easily.

I'have a structure with 70 or 80 fields form. When I try edit a web content with that structure in the control panel, my browser firefox and ie crash (google chrome works fine).

I used firebug to see what it was happening and i coud be that the problem is a lot of javascript files loading in each field form (for example, query.js is loaded 70 or 80 times, one per field form).

It's true that the cache browser works fine and load almost all javscript files but it's not enough. I see that the time spended by the request for all this javascript files is too much (1minute a 30 seconds), with cache browser working inclusive.

Any solution??

Thanks!!
thumbnail
Raja Nagendra Kumar, geändert vor 12 Jahren.

RE: Performance problem in Liferay 6.0.6 CE

Expert Beiträge: 484 Beitrittsdatum: 02.03.06 Neueste Beiträge
Could you show the jsp or script which is creating the form..

loading jquery per field is not the right approach..

See this..
http://www.liferay.com/web/nathan.cavanaugh/blog/-/blogs/using-jquery-or-any-javascript-library-in-liferay-6-0

It shows the ways to load jquery..

Regards,
Nagendra
thumbnail
Miguel Ángel Júlvez, geändert vor 12 Jahren.

RE: Performance problem in Liferay 6.0.6 CE

Junior Member Beiträge: 63 Beitrittsdatum: 29.03.11 Neueste Beiträge
Raja Nagendra Kumar:
Could you show the jsp or script which is creating the form..

loading jquery per field is not the right approach..

See this..
http://www.liferay.com/web/nathan.cavanaugh/blog/-/blogs/using-jquery-or-any-javascript-library-in-liferay-6-0

It shows the ways to load jquery..

Regards,
Nagendra


Yeah, I know. But that's the way that structures works in liferay. I guess I can fix it overwritting all taglib in ¿aui? or something similar.... emoticon

Regards!
thumbnail
Raja Nagendra Kumar, geändert vor 12 Jahren.

RE: Performance problem in Liferay 6.0.6 CE

Expert Beiträge: 484 Beitrittsdatum: 02.03.06 Neueste Beiträge
OK you use aui..

Is the perf issue with your form or with any default forms provided outof the box with liferay... or is it in both..

If the issue is with your form, pl. show your view code..

Regards,
Nagendra
thumbnail
Miguel Ángel Júlvez, geändert vor 12 Jahren.

RE: Performance problem in Liferay 6.0.6 CE

Junior Member Beiträge: 63 Beitrittsdatum: 29.03.11 Neueste Beiträge
Raja Nagendra Kumar:
OK you use aui..

Is the perf issue with your form or with any default forms provided outof the box with liferay... or is it in both..

If the issue is with your form, pl. show your view code..

Regards,
Nagendra


Hi Nagendra,

It's with any default form provided outofthebox for liferay portal. It happens in any field form of a web content inside of control panel. If you've a few of field forms in the structure you don't realize, but if you insert a web content associated to a structure with 70 or 80 fields forms you can view it

Thanks!