Foren

Stop loading extra files

thumbnail
Anil T, geändert vor 6 Jahren.

Stop loading extra files

Expert Beiträge: 313 Beitrittsdatum: 14.01.12 Neueste Beiträge
Hello Team,

I am seeing the below files are loading for guest user on my portal. Could anyone suggest me to stop loading these files for guest user and power user. These should load for administrator.

/html/css/main.css
/html/portlet/login/css/main.css
/html/portlet/dynamic_data_mapping/css/main.css
/html/portlet/staging_bar/css/main.css
/html/portlet/journal/js/navigation.js

Thanks,
Anil T
thumbnail
David H Nebinger, geändert vor 6 Jahren.

RE: Stop loading extra files

Liferay Legend Beiträge: 14916 Beitrittsdatum: 02.09.06 Neueste Beiträge
Anil T:
Could anyone suggest me to stop loading these files for guest user and power user.


Before you start adding/removing files, you really should have some sort of solid reasoning besides "we just don't want them".

You might say it is affecting the loading time for your page, but before you can claim this you would need to have some sort of measurements which demonstrate the impact of including the files.

A lot of times folks want to exclude files for nothing more than an invalid perception that the files significantly impact load times when, more often than not, the problem is custom code.







Come meet me at Devcon 2017 or 2017 LSNA!