Suggestion: Minimal API library version

Post here your questions about the HTML5 / JavaScript for SFS2X

Moderators: Lapo, Bax

User avatar
Rob
Posts: 34
Joined: 01 Jul 2017, 07:33

Suggestion: Minimal API library version

Postby Rob » 19 Feb 2019, 18:13

Since the SmartFox javascript library is rather big I think it would be useful to have a minimal version with just the core features in addition to the full package.

Currently the library is about 350kB minified.

Larger javascript libraries often have multiple versions available, usually a "min" version with the core feature set and a full version. Sometimes there are more than those two options as well.

The minimal version could strip out features such as debug logging and the MMO-, Game- & Buddylist- API.

It's already structured in a way that might make this split easier, having the getBuddyApi() & getGameApi() calls for API subsets.
User avatar
Bax
Site Admin
Posts: 4474
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Suggestion: Minimal API library version

Postby Bax » 20 Feb 2019, 08:13

Thank you for the suggestion.
It is not that easy to split the API into multiple files, and it can be harder to maintain everything.
We may look into it in the future, but no guarantees we can do it.
Paolo Bax
The SmartFoxServer Team

Return to “SFS2X HTML5 / JavaScript API”

Who is online

Users browsing this forum: No registered users and 2 guests