Hi Scott,

 

You bring up a very interesting point and use case.

While we can’t guarantee anything, it would be great if you filed a ticket with 
the project, providing similar details as here.

You’ve explained well the need and the use case(s) and that’s something we 
might be able to work with. I can think of possibly a few other things to 
consider.

 

Thanks,

Ron

 

 

 

From: <[email protected]> on behalf of "[email protected]" 
<[email protected]>
Reply-To: "[email protected]" 
<[email protected]>
Date: Thursday, May 3, 2018 at 14:57
To: Swagger <[email protected]>
Subject: Make it smaller please!

 

I would like to add a request to make a low-frills, non-fluff version of the 
swagger ui so that it can be used on embedded devices.  I have worked with a 
number of common, existing tools and managed to scale them down quite a bit by 
using a combination of combining all the sourced/linked content into a single 
file, minifying the various languages as much as possible, then gzipping the 
files with maximum compression. But despite my best efforts, the smallest I can 
get the swagger ui in it's most recent form is about 660k. Compare this to the 
next largest toolkit I've worked with, angularjs and that is 56k.
I tried grabbing an online 'minified' version which seemed to have stripped out 
some stuff like the custom fonts and some of the unnecessary images, but even 
with that version, the smallest I can get it is around 450k. 

 

Besides the problem with storage space on an embedded device, you are also 
often working with hardware that is not as well designed to handle large file 
transmission or at least not able to do so quickly. They also tend to limit the 
number of simultaneous streams (thus the combining of as many things as 
possible into a single file, using tricks like base64 encoding binary files 
such as images and fonts)

 

It's nice to have the full featured version for nice pretty interfaces on 
professional looking websites and I'm not trying to detract from that. But it 
would also be nice if there was a no-frills, small-as-possible version for 
efficiency and use on things like embedded IoT devices.

 

SW

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to