verbb / formie

The most user-friendly forms plugin for Craft CMS.
Other
95 stars 73 forks source link

[3.x] Don't load scripts via CDN #1984

Open vandres opened 2 months ago

vandres commented 2 months ago

Describe the bug

I am using the current Beta version of Formie 3.x for our Craft 5 installation. I can see, that some scripts are loaded via those CDNs:

intl-tel-input: cdnjs.cloudflare.com Flatpickr: npmcdn.com

This is very bad for EU usage. Can you please give an option, to load those scripts locally?

Steps to reproduce

  1. Make a form and use the phone field with country drop down
  2. or set the locale to "de" and use the advanced calendar
  3. open the form in the Browser and look at the network tab

Form settings

Craft CMS version

5.2.8

Plugin version

3.x

Multi-site?

"Yes"

Additional context

No response

engram-design commented 2 months ago

I'll see what I can do about adding an option for that, although it's going to complicate our build process. I'd rather not include these with Formie if we can help it, but I understand the complexities of using CDN-delivered code in the EU.

vandres commented 2 months ago

Maybe if we could configure a local path. Then we would need to take care of presence of the scripts and the version compatibility, but it would be a short term solution.