掲示板

how to decrease the number of requests in liferay page

thumbnail
7年前 に Murali Krishna によって更新されました。

how to decrease the number of requests in liferay page

Junior Member 投稿: 47 参加年月日: 12/01/17 最新の投稿
Hi,

for the default page loading, there are almost 8 javascript combo url's are calling from the "frontend-js-web", "frontend-js-metal-web-1.0.7", "frontend-js-spa-web-1.0.7" modules, even i login as normal user and the page contains nothing. so many aui files are loading by default.

is their any way to stop loading these files via configuration?

we want to the the decrease the number of requests for the page, so the page loading time decreases.

Thanks,
Murali
thumbnail
7年前 に Samuel Kong によって更新されました。

RE: how to decrease the number of requests in liferay page

Liferay Legend 投稿: 1902 参加年月日: 08/03/10 最新の投稿
These files are necessary for the site to work, even for regular users. You shouldn't try to disable these files. The load time shouldn't be too bad overall. The files should be cached by the browser, so they won't be downloaded on every page load.
thumbnail
7年前 に David H Nebinger によって更新されました。

RE: how to decrease the number of requests in liferay page

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
You're not going to be able to disable these as they make the site work.

However, you can look at ways to offload this from the app server such as hosting static assets in Apache HTTPd and serving them from there instead of from the app server.

Also you could add a caching server such as Apache Varnish. Varnish honors the cache control headers coming from the app server responses so you can effectively offload the serving of these requests off of the app server.

And finally, don't assume that page loading times are long because of these javascript file requests. Often times if you actually use a profiling tool you'll find that your page loading times are affected more by what you have actually put on the page and not the service of javascript files used by AUI.