By Sunny on Monday, 22 December 2014
Posted in General Issues
Replies 9
Likes 0
Views 591
Votes 0
Is there a way to disable loading of fontawesome file and css in easysocial, this is because my template by default includes fontawesome and i dont want it to be loaded twice (once by site and once by easysocial).

This will help me in making easysocial leaner.

Same thing for bootstrap & jquery files if possible.

regards
Hi Sunny,

I am sorry for the late reply.
I believe we're using our own font for EasySocial; we didn't use Fontawesome for EasySocial.

Hope this will help.
Thanks.
·
Monday, 22 December 2014 16:16
·
0 Likes
·
0 Votes
·
0 Comments
·
okay, then do you have a list of standard icons available in easysocial fonts, so that we can use it sitewide and do away with fontawesome? basically i want one icon fonts only on the website.

Currently there are three on my site:
1) Glyphicon ( Default from bootsrap)
2) Fontawesome ( Template heavily relies on it)
3) Easysocial icons (ies-..)

secondly i also wanted to ask on the cdn (JS & CSS) not photo remote storage, can we use google drive as a storage for easysocial js & css? if yes, what files do i have to upload to my gdrive and will easysocial (merge & compress)?

I was looking at this method: Using Google drive as CDN

regards
·
Monday, 22 December 2014 17:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Sunny,

I am sorry for the late reply.
Regarding your first inquiry, a list of standard icons available in EasySocial fonts are as in this screenshot: http://screen.stackideas.com/2014-12-23_1115.png .

Regarding your second question, yes it is possible to use Google Drive as CDN. However, there is no documentation/tutorial to setup this. You can use these steps as a guide:
1. Setup your Google Drive. You can use this video as guide: https://www.youtube.com/watch?v=RhvfffuYzcQ#t=86 .
2. Enable EasySocial CDN. Here is my screenshot: http://screencast.com/t/krc4bHOP6paG .
3. For CDN url, please use: http://googledrive.com/host/[your Google Drive folder-id].
4. After done setup that, you need to put all these files in your Google Drive folder.

components
| - com_easysocial
| - - themes
| - - - [all themes]
| - - - - styles
| - - - - - [all style files]
media
| - com_easysocial
| - - config
| - - - [all config files]
| - - fonts
| - - - [all font files]
| - - images
| - - - [all image files]
| - - scripts
| - - - [all script files]
| - foundry
| - - 3.1
| - - 4.0
modules
| - [all modules]
| - - [all style files]


If you have anymore question, please don't hesitate to ask us.
Hope this will help.
Thanks.
·
Tuesday, 23 December 2014 12:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mohd Yasser,

That was perfect, solves many issues for me, just two more questions

Should i upload only the files (in the folders) to my gdrive or i upload all the folders and subfolders?

Secondly will easysocial use the merged js files and also the gzip & cache settings of my site would apply to the cdn?

Also thanks a lot for the icon list, i'll save about 60-80K of fontawesome!!

regards
·
Tuesday, 23 December 2014 18:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi sunny,

I believe you should upload all the folders and subfolders in the Google Drive as per my previous reply (Step no 4). Here, you can use this as a guide; my Google Drive tree: https://drive.google.com/file/d/0B6oEongGQx5gdnpVdTZLZFR5eEk/view?usp=sharing .

If you have anymore question, please don't hesitate to ask us.
Hope this will help.
Thanks.
·
Tuesday, 23 December 2014 19:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi mohd,
Nice to know that you too use gdrive, it gives me confidence on my thoughts.

Can you please also confirm that if I use gdrive, merging will be handled by easy social as per admin settings(merged single file for js & css)
and file caching & compression of Joomla would be honored for all the files being served from gdrive.

Regards
·
Wednesday, 24 December 2014 02:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sunny,

I am sorry for the late reply.
Yes, all compiling, compression and caching are done in EasySocial and Joomla.
Here is some explanation. (Content Delivery Network) CDN; is a global cluster of caches that can serve as local caches for static files, in which you're using GDrive as CDN to store your Js, css files, etc. GDrive only store and host the files and providing it if your site request certain files and instead of the hosting server responding with these objects, the GDrive takes care of serving them.

Hope this will help.
Thanks.
·
Wednesday, 24 December 2014 11:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mohd,

Thank you for taking your time out & explaining, but i'm a little confused. Please excuse my limited knowledge.

Currently all js/css files in my easysocial are being served locally and in page source i can see that they are merged:

/media/com_easysocial/config/ae4df41c03fab04dc239158244b082ea.js
/media/foundry/3.1/config/3dfa9197c1c1892b7627ea6dbe260d82.js
/media/foundry/4.0/config/cb75109b2de94f861a611cc023fa0a7d.js
/media/com_easysocial/scripts/easysocial-1.3.13.static.min.js
/media/com_easysocial/resources/629056dcb36fe40ba72eee492c1fa78b.js

All the above (Except easysocial-1.3.13.static.min.js) have random numbers in front of them, so i belive they are merged and served.

Now my question is that ae4df41c03fab04dc239158244b082ea.js, 3dfa9197c1c1892b7627ea6dbe260d82.js....... would not be in gdrive, as gdrive will host individual js. So will easysocial pull individual files from gdrive and then merge them before serving to the visitor??

secondly if you notice above there are two foundry folders 3.1 & 4.0, are loading of both versions a must??

regards
Sunny
·
Wednesday, 24 December 2014 13:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sunny,

Yes, the js files with the randoms number in front are the merged script. As you can see in EasySocial settings > under User Preferences tab > System Settings, you can see System Environment. There are 2 types of environment; Production and Development. Production environment loads a single script file containing Foundry & EasySocial scripts, while in Development environment, EasySocial will loads all script files separately. This allows developer to run the compile script to merged and saved the individual script together.

Coming back to your question, the merged scripts with random numbers in front are still needed in EasySocial. I believe you should put all the script files in the GDrive because once you have turn-on CDN, GDrive will become host to all your script files and it will no longer load from your hosting site in which it will become a problem if there is a missing script file.

Regarding this, "So will easysocial pull individual files from gdrive and then merge them before serving to the visitor??" No. EasySocial only load/request for the merged scripts (merged script). However, if the environment changed to Development, EasySocial will request for individual script. So, by having all the script files in the GDrive, this will make it easier and less problematic to change the environment if needed.

Regarding your second question, EasySocial loads 4.0 foundry.

Hope I have explained well.
Thanks.
·
Wednesday, 24 December 2014 15:47
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post