Hello everyone,
EasySocial is very slow. Why? because it uses heavy resources. Those resources are:
1)
Stylesheets = "
base.min.css" + "
style.min.css" + "
more.min.css" =
148 KB +
313 KB +
210 KB =
671 KB (It is very heavy for single component)
2)
JavaScripts = "
easysocial-1.3.13.static.min.js" + "
others.." =
1,047 KB +
25 KB =
1,072 KB (its very heavy)
3)
Graphics/Fonts - didnt calculated, doesn't matter based above number. In "Graphics" i mean EasySocial media image files/theme images (and not itself user avatar/cover or others ones), which are not compressed.
so EasySocial uses minimum 1,700 KB - and its crazy heavy.
of course, all EasySocial customers users Joomla, and their template on it, also other modules, plugins, let say they use minimum 300 KB, and with EasySocial it becomes
2 MB.
So, what it the way to solve this issue on EasySocial component? My point of view:
1) Dividing "
base.min.css" + "
style.min.css" + "
more.min.css" CSS files, for example Dashboard page dont needs to load all stylesheets, here is "Google Chrome Audit" -
http://postimg.org/image/yoonnzzkn/ - you can test yourself about it.
2) Same for Javascript files, i dont know if it possible or not, but try to divide it also. I mean it is bad to load on "Dashboard" page 1 MB Scripts, if that page dont need it.
3) Minifing Graphic images, use for example those online tools -
https://tinypng.com/ -
https://tinyjpg.com/
For example, compressing this file "joomla_root/media/com_easysocial/images/icons/icons-sprites.png" can save you 50% of that file.
Mark, i have a small question, as i see EasySocial all pages loads those stylesheets: "
base.min.css" + "
style.min.css" + "
more.min.css", is there any other stylesheets on other pages which can be loaded? i'm working on new theme and i want to know if there are any other pages where can be loaded different stylesheets which i dont know (I dont mean EasySocial apps or modules, i mean core theme files.)
So all theme styles are loaded on those 3 stylesheet files, right?
Thanks you very much,
Maksym