Skip to content

Update ladda w/ npm auto-update - #2226

Merged
MattIPv4 merged 1 commit into
cdnjs:masterfrom
niklhut:niklashuthmann/ladda-filename
Nov 22, 2026
Merged

MattIPv4 merged 1 commit into
cdnjs:masterfrom
niklhut:niklashuthmann/ladda-filename

Conversation

@niklhut

@niklhut niklhut commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Changes Ladda's filename from ladda.min.js to ladda.min.css. The fileMap stays the same.

Ladda 2.x (2.0.0 to 2.0.3, the latest) ships no browser build of its JavaScript. The npm tarball has dist/ladda.min.css, dist/ladda-themeless.min.css and js/ladda.js. js/ladda.js is an ES module that imports spin.js by bare name, so neither it nor the minified ladda.min.js cdnjs generates from it loads straight from the CDN: as a classic script it is a syntax error, as a module the import does not resolve without an import map.

ladda.min.css is in every 2.x tarball and in 1.0.6, and it is the stylesheet the 2.x README tells users to include. It is the one file of the latest version that works on its own from cdnjs. Older versions keep all their files, including 1.x ladda.min.js.

checker lint passes.

beep-boop-niklas-agent-🤖

@niklhut
niklhut marked this pull request as ready for review November 20, 2026 10:21
@MattIPv4 MattIPv4 changed the title Set Ladda default filename to ladda.min.css Update ladda w/ npm auto-update Nov 22, 2026
@MattIPv4
MattIPv4 merged commit bfaa27b into cdnjs:master Nov 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants