Skip to content

Turn Instantclick into a module if it needs to be one#156

Closed
DecentM wants to merge 3 commits intodieulot:masterfrom
DecentM:master
Closed

Turn Instantclick into a module if it needs to be one#156
DecentM wants to merge 3 commits intodieulot:masterfrom
DecentM:master

Conversation

@DecentM
Copy link
Copy Markdown

@DecentM DecentM commented May 10, 2017

A lot of web developers use RequireJs, Browserify or the like, so this PR enables Instantclick to be require-d or import-ed from Javascript and Typescript entry points.

Regular functionality is the same. If the script runs plainly in the browser, it will attach the InstantClick object to window as usual.

I also added a package.json to let people do npm install https://github.com/dieulot/instantclick and be on their way.

I wrote the version number as 4.0.0, so that probably needs to be changed before merging into master.

@rstacruz
Copy link
Copy Markdown

Really would love this. I've been using @egoist's fork (https://github.com/egoist/instantclick) just so I can use instantclick without bower.

@DecentM DecentM closed this Apr 3, 2026
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