- Posts: 24
COMMUNITY FORUM
Why does K2 have to load CloudFlare's CDN files?
- Roland
- Offline
- Junior Member
Less
More
5 years 11 months ago #170486
by Roland
Replied by Roland on topic Why does K2 have to load CloudFlare's CDN files?
Hello,
currently the version 2.9.0 is stable.
Is there in meantime an option to deactivate CDN loads or do I have further to modify core files?
currently the version 2.9.0 is stable.
Is there in meantime an option to deactivate CDN loads or do I have further to modify core files?
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
5 years 11 months ago #170497
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Why does K2 have to load CloudFlare's CDN files?
In the upcoming K2 v2.10.0 (currently 2.9.1 on GitHub) we use jsDelivr's CDN so the K2 package is smaller and so client-side performance is better. There is no option to disable it currently.
If you wish to manually change the CDN references, only 4 files contain jsDelivr URLs:
/administrator/components/com_k2/elements/k2tags.php
/administrator/components/com_k2/elements/k2users.php
/administrator/components/com_k2/helpers/html.php
/administrator/components/com_k2/helpers/stats.php
If you wish to manually change the CDN references, only 4 files contain jsDelivr URLs:
/administrator/components/com_k2/elements/k2tags.php
/administrator/components/com_k2/elements/k2users.php
/administrator/components/com_k2/helpers/html.php
/administrator/components/com_k2/helpers/stats.php
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Roland
- Offline
- Junior Member
Less
More
- Posts: 24
5 years 11 months ago #170499
by Roland
Replied by Roland on topic Why does K2 have to load CloudFlare's CDN files?
According our GDPR we really need such an option to disable complete CDN loads.
Please insert such an option so we don´t need to change manually core files which gets overwritten on each update...
Please insert such an option so we don´t need to change manually core files which gets overwritten on each update...
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
5 years 11 months ago - 5 years 11 months ago #170507
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Why does K2 have to load CloudFlare's CDN files?
That's exactly the reason we switched from CDNJS (by CloudFlare) to jsDelivr. The latter stores nothing personal from users. See this: github.com/jsdelivr/jsdelivr/issues/18067
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Last edit: 5 years 11 months ago by JoomlaWorks.
Please Log in or Create an account to join the conversation.
- Roland
- Offline
- Junior Member
Less
More
- Posts: 24
5 years 11 months ago #170523
by Roland
Replied by Roland on topic Why does K2 have to load CloudFlare's CDN files?
Hello,
I think it would be also a great feature if your users have the ability to decide if they want to use CDN.
Such a features should not explode your development ressources I think...
I think it would be also a great feature if your users have the ability to decide if they want to use CDN.
Such a features should not explode your development ressources I think...
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
5 years 11 months ago #170540
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Why does K2 have to load CloudFlare's CDN files?
Like I said, it increases the package size a lot.
But any developer could make a plugin that makes K2 "GDPR friendly" by dynamically replacing the CDN URLs.
But any developer could make a plugin that makes K2 "GDPR friendly" by dynamically replacing the CDN URLs.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- 野草工作室
- Topic Author
- Offline
- New Member
- 专业Joomla建站
5 years 3 months ago #172754
by 野草工作室
野草工作室提供专业Joomla建站服务
www.ycway.com
Replied by 野草工作室 on topic Why does K2 have to load CloudFlare's CDN files?
If K2 does not use CDN, it will increase the size of the installation package to unacceptable. Then, if you can develop another plug-in, you can provide file loading localization function independently.
Even if this plugin is a fee, I can accept it, this is at least a solution.
Otherwise I can only manually hack the K2 core file.
Even if this plugin is a fee, I can accept it, this is at least a solution.
Otherwise I can only manually hack the K2 core file.
野草工作室提供专业Joomla建站服务
www.ycway.com
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
5 years 3 months ago #172759
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Why does K2 have to load CloudFlare's CDN files?
The next update will use jsDelivr which -if I recall properly- is GFW friendly. Are you referring to something else?
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- 野草工作室
- Topic Author
- Offline
- New Member
- 专业Joomla建站
5 years 3 months ago #172765
by 野草工作室
野草工作室提供专业Joomla建站服务
www.ycway.com
Replied by 野草工作室 on topic Why does K2 have to load CloudFlare's CDN files?
Yes, I am very happy to see an improvement in this issue.
But there is still a need to not use CDN at all. For example, I need to develop a website used in the LAN for information management, user management and other functions.
Not using a CDN can make the problem much simpler.
If the website must load the CND file, then
1. When developing a website, you must connect to the Internet, otherwise you will not be able to develop.
2. When using the website system, the website users must also connect to the Internet, and cannot use it directly on the local area network.
Although for many people, the Internet is ubiquitous, it does not necessarily exist for everyone or all projects. I hope that K2 can satisfy more usage scenarios, so I have been paying attention to this issue.
Thank you.
But there is still a need to not use CDN at all. For example, I need to develop a website used in the LAN for information management, user management and other functions.
Not using a CDN can make the problem much simpler.
If the website must load the CND file, then
1. When developing a website, you must connect to the Internet, otherwise you will not be able to develop.
2. When using the website system, the website users must also connect to the Internet, and cannot use it directly on the local area network.
Although for many people, the Internet is ubiquitous, it does not necessarily exist for everyone or all projects. I hope that K2 can satisfy more usage scenarios, so I have been paying attention to this issue.
Thank you.
野草工作室提供专业Joomla建站服务
www.ycway.com
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
5 years 3 months ago #172769
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Why does K2 have to load CloudFlare's CDN files?
I'll see if there's an option to use LocalStorage for that. It would make working offline easier, without the need to bundle all external assets into K2. The only requirement would be to load your local site once over a network connection so the browser could cache the 3rd party assets. And of course this way of using K2 could be an option that you switch to on in K2's settings, aka, it would not affect the actual live/production website.
Noted on my to-do.
Noted on my to-do.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.