?
avatar BaleshSrle
BaleshSrle
14 Oct 2018

Is your feature request related to a problem? Please describe.

Because Joomla 4 is becoming ever so elaborate and heavy for servers, my idea is to make Joomla 4 as lite as possible. I think that there are some files that take space (like JQuery, HTML5Shiv)

Describe the solution you'd like

My solution is to use CDN on Joomla 4, because it will be fewer files to upload to server via FTP.

Additional context

On this links you can find files which can be used in Joomla 4. Yo can even select which version of this files can you insert in Joomla.
https://cdnjs.com/libraries/mootools
https://cdnjs.com/libraries/mootools-more
https://cdnjs.com/libraries/jquery
https://cdnjs.com/libraries/jquery-migrate
https://cdnjs.com/libraries/html5shiv

avatar BaleshSrle BaleshSrle - open - 14 Oct 2018
avatar joomla-cms-bot joomla-cms-bot - change - 14 Oct 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 14 Oct 2018
avatar SharkyKZ
SharkyKZ - comment - 14 Oct 2018

Joomla! must ship with all required files. Otherwise it would be unusable where internet connection is not available (e.g. intranets).

avatar brianteeman
brianteeman - comment - 14 Oct 2018

Closed for the reason stated above.

avatar brianteeman brianteeman - change - 14 Oct 2018
Status New Closed
Closed_Date 0000-00-00 00:00:00 2018-10-14 19:17:12
Closed_By brianteeman
avatar brianteeman brianteeman - close - 14 Oct 2018
avatar BaleshSrle
BaleshSrle - comment - 15 Oct 2018

What does Intranet has with CDN servers? If you want to know more about CDN's you can wisit https://en.wikipedia.org/wiki/Content_delivery_network .

BTW, does anyone know about Cloudflare? The files of those links (from my previous post) are hosted on Cloudflare CDN servers. If you want to have more info about Cloudflare you can visit https://www.cloudflare.com/network/ & https://www.cloudflarestatus.com/ .

avatar BaleshSrle BaleshSrle - change - 15 Oct 2018
The description was changed
avatar BaleshSrle BaleshSrle - edited - 15 Oct 2018
avatar brianteeman
brianteeman - comment - 15 Oct 2018

If you are using an intranet then you cannot use a cdn

avatar BaleshSrle
BaleshSrle - comment - 15 Oct 2018

Changed HTML5Shiv from Joomla's original link to new https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js in https://baleshevich.dobojcaffe.com/v2/ and it works.

avatar brianteeman
brianteeman - comment - 15 Oct 2018

We are not saying that if you use a cdn it will not work.

We are saying if you are on an intranet and do not have access to the entire internet then a cdn will not work as you cannot access the files.

This is why the core of joomla must ship with all the files

avatar BaleshSrle
BaleshSrle - comment - 5 Jun 2019

We are not saying that if you use a cdn it will not work.

We are saying if you are on an intranet and do not have access to the entire internet then a cdn will not work as you cannot access the files.

This is why the core of joomla must ship with all the files

I must have read "Intranet" because @SharkyKZ might wrote that.
BTW, how does Joomla! uses CDN for Banners @ Joomla! Volunteers Portal ?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 5 Jun 2019

BTW, how does Joomla! uses CDN for Banners @ Joomla! Volunteers Portal ?

Please ask on Forum

avatar BaleshSrle
BaleshSrle - comment - 5 Jun 2019

@franz-wohlkoenig I mean, if Joomla! can use CDN for Joomla! Volunteers Banners, why can't it use CDN for JQuery, HTML5Shiv, Bootstrap & Mootools . Right?

avatar brianteeman
brianteeman - comment - 5 Jun 2019

We are not saying that if you use a cdn it will not work.

We are saying if you are on an intranet and do not have access to the entire internet then a cdn will not work as you cannot access the files.

This is why the core of joomla must ship with all the files

avatar mbabker
mbabker - comment - 5 Jun 2019

Out-of-the-box, Joomla cannot require files be loaded from a third party CDN. Someone using Joomla can opt to use a CDN if they choose.

If you are in a closed network environment (AKA intranet), where there is limited or no access to the public internet, then loading files from a CDN is not going to be possible. This is basically the same as if you're working on a copy of a website on your local computer that has its internet access turned off.

Please remember that not every PHP application is deployed somewhere that can just load anything from anywhere in the world. If Joomla, or any CMS, defaulted to requiring a CDN to load resources, then those platforms would immediately be unusable to anyone who is intending on deploying said CMS into a closed network.

avatar BaleshSrle
BaleshSrle - comment - 9 Jun 2019

Guys, are you sitfing on your ears?! Can you read the only compent of @SharkyKZ.

I DON'T USE INTRANET, AND I WANT FROM JOOMLA TO USE CDN, BECAUSE SOME BRAINIACS WANT TO ADD MORE FILES TO UPLOAD TO SERVER, AND SOME OF US DON'T HAVE UNLIMITED SPACE ON SERVERS.
I WANT FROM JOOMLA! TO TAKE SOME OF HEAVY FILES LIKE BOOTSTRAP, JQUERY, HTML5SHIV AND UPLOAD THEM TO THEIR CDN SERVER(S) , OR TO USE ONLY MINIFIED VERSION OF THIS FILES, BECAUSE JOOMLA! IS GETTING TOO HEAVY AND DEMANDING TO UPLOAD VIA FTP.

avatar franz-wohlkoenig franz-wohlkoenig - change - 9 Jun 2019
Title
Using CDN in Joomla 4
[4.0] Using CDN
avatar franz-wohlkoenig franz-wohlkoenig - edited - 9 Jun 2019
avatar mbabker
mbabker - comment - 9 Jun 2019

You can configure Joomla to use a CDN, nothing stops you from doing that.

Joomla cannot be set up to by default require a CDN or to not ship the media files that it requires. That makes Joomla unusable in a closed network environment, period. And no, this is not a hypothetical issue. My first experience with Joomla was on one of those closed networks where no CDNs are available at all.

As this has been repeatedly answered as to why it is not feasible to strip the default distribution of Joomla of media files or to require public internet access to a CDN, I suggest locking this issue as resolved.

Add a Comment

Login with GitHub to post a comment