-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delay when portlet in liferay is loaded #5
Comments
Is it really loading time? The size of Angular is about 130k. Maybe it is a problem of browser performance executing JavaScript. What browser do you use? Any chance to debug the problem in the browser dev tools? |
I tested with:
|
Hmm, didn't expect Chrome is the browser with the worst performance. Did you measured where the time is lost? Network, JavaScript or something else? |
Dear Oliver,
Sorry not to answer in these past days, you but we were very busy trying to port Vaadin portlets from Liferay 6.x to 7.x. We had many problems so we decide to put it on hold or take the approach to change everything to OSGi. Including Vaangular portlets.
So we will plan to migrate first Vaangular portlets to OSGi Liferay DXP and after that, start again with performance testing.
I will let you know.
Ricardo.
… On Dec 15, 2016, at 3:56 AM, Oliver Damm ***@***.***> wrote:
Hmm, didn't expect Chrome is the browser with the worst performance.
Did you measured where the time is lost? Network, JavaScript or something else?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#5 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AUARuvBoAD3K8k-E_LzcnLr65okVrhiyks5rIQ68gaJpZM4LMqE0>.
|
Back again. We could migrate many Vaadin addons to Liferay DXP (e.g., Scaladin addon). The work was to change de .jars file to OSGi (i.e, modify the MANIFEST) Any idea to run Vaangular with Liferay DXP? |
My guess would be: you don't need vaadin-client after widgetset compile is done, so you could exclude the dependency per se and only include it for the widgetset-compile |
The Liferay DXP OSGi class loader sends me an error because JavascriptPlus (i.e., JavascriptPlusConnectorHelper) has a dependency with com.google.gwt.core.client.JavaScriptObject. Searching for this class it is declared in a jar .m2/repository/com/vaadin/external/gwt/gwt-user/2.7.0vaadin4.jar, and this jar is not OSGi. Any idea to do some work around) |
After several hours I could make it work "partially" over Liferay DXP: It is was partially solved because for now I take out the JavascriptPlusConnectorHelper class (just for now). Any hint will be useful. |
I'd try a different classpath for the widgetset compilation which includes non-OSGI components... |
So far I could OSgi 2.7.0vaadin4.jar with its dependencies. And could include the JavascripPlus. Everything work ok and your weather example widget works ok. The problem is between Vaadin and AngularJS communication (i.e, onChange method, deferred variable). I believe it is because I´m not using JavascriptPlus widgetset. |
Sebastian: |
Comment from #3:
We want to send your add-on to production environment but we have a problem. When the liferay portlet is loaded, it delays more than 5 seconds (I believe is because all angular.js is loaded). Any idea how can I reduce this delay time (i.e., Vaadin takes 0.5 or less to load)
The text was updated successfully, but these errors were encountered: