alpinejs / alpine

A rugged, minimal framework for composing JavaScript behavior in your markup.
https://alpinejs.dev
MIT License
27.92k stars 1.22k forks source link

Feature: cdn.no-start(.min).js version #4289

Closed vanodevium closed 1 month ago

vanodevium commented 2 months ago

This request adds the ability to use the CDN version without automatically starting Alpine.

This version allows you to use a CDN file even if your data is coming from a server after page initiation.

Please remember to manually call Alpine.start()

ekwoka commented 2 months ago

Why does this need new files for all the plugins?

They're literally the same thing as what already exists...

vanodevium commented 2 months ago

@ekwoka

This is only so that the build process is not changed. This functionality can be easily changed, your requests or commits are welcome

ekwoka commented 2 months ago

This version allows you to use a CDN file even if your data is coming from a server after page initiation.

I'm not sure what exactly you mean by this.

Can you give an example of the use case?

Is there a reason, even after the recent Chinese supply chain attacks you still think using a public third party CDN is a good idea?

vanodevium commented 2 months ago

@ekwoka

No, no, no Chinese attacks have any effect here.

This is an attempt to make a version of Alpine that can be included through a normal CDN.

I will try to explain my case:

I require Alpine through normal CDN as cdn.min.js file by Githubissues.

  • Githubissues is a development platform for aggregating issues.