jro
jro

Reputation: 7480

Delivering a javascript library for web developers

This is a broad-based question around delivering a javascript library that other web developers will use on their site. Here's the scope of my library:

Now, to my question: what's ideal in terms of best practices for providing a service in the form of a JS library such as I've described? Standard Googling has not given me much to go on, but references to guidelines are greatly appreciated.

Upvotes: 1

Views: 261

Answers (2)

pchap10k
pchap10k

Reputation: 2086

YUI host all their files for developers to access directly, and with free use of their CDN to boot. Also hundreds of thousands of companies worldwide use Google Analytics, which is the same risk profile as "Jeff".

Admittedly the trust profile for Yahoo! and Goole is a lot higher than it is for "Jeff", but still, my point is there are plenty of precedents out there for this delivery model.

Personally (btw there is no right answer, except for the market's response) I believe it may have merit depending on the value proposition behind "Jeff". I agree with MadMurf, describe it as a 'web service' that requires only one JS file to integrate into a customer's website.

PS: I'm not sure if "javascript" was the best tag for discussing this. Maybe the "business" tag would have elicited wider feedback. Good luck!

Upvotes: 0

MadMurf
MadMurf

Reputation: 2323

Doesn't sound like something I'd use. The fact that you want it always hosted on your server leaves any consumer of the service open to you substituting malicious code after they've reviewed and determined its useful and safe. Thus I'd see limited uptake for it unless you're a large corporation with a trustworthy reputation.

No comment on you personally, just how I'd view something like that and how Information Security overseers in larger companies would likely view it as well.

Upvotes: 1

Related Questions