BTCPrivate / btcp-widget

JS widget for online shop payments
5 stars 2 forks source link

CDN host widget.js #50

Open mattpass opened 6 years ago

mattpass commented 6 years ago

We may want to consider CDN hosting the widget.js file in future.

Thinking to the future when we have 10,000 merchants using the widget, the load on pay.btcprivate.org/widget.js will be large and need load balancing and monitoring of server etc.

The only reason it needs to be within that domain is so we can provide the button type, style and approval rule number, and it has a fallback of buy_A1_0 anyway.

So no reason why it can't be hosted via a CDN, for not only speed but also a theoritically improved uptime.

mattpass commented 6 years ago

As a side note - do we ever want to offer widget.js as a standalone file so merchants could run in complete isolation if they wish (own full node setup and running own widget.js)?

It could provide a not only completely separate setup away from us entirely, but also allow them to customise code if they wish.