ha7ilm / openwebrx

Open source, multi-user SDR receiver software with a web interface
https://sdr.hu/openwebrx
GNU Affero General Public License v3.0
980 stars 462 forks source link

Decrease the load of server by using CDN #120

Open bclswl0827 opened 5 years ago

bclswl0827 commented 5 years ago

"jquery.min.js"" in line 45 replaced to "//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js" "jquery.nanoscroller.min.js" in line 46 replaced to "//cdnjs.cloudflare.com/ajax/libs/jquery.nanoscroller/0.8.7/javascripts/jquery.nanoscroller.min.js" "nanoscroller.css" in line 47 replaced to "//cdnjs.cloudflare.com/ajax/libs/jquery.nanoscroller/0.8.7/css/nanoscroller.css" All above is to Decrease the load of server.

ha7ilm commented 5 years ago

Hi,

Thank you for the PR. Those files are included with OpenWebRX so that installing and using it with the default settings does not reveal the presence of the server to any service provider (including CloudFlare). Does it worth to cache these anyway? I think what takes a lot of time to load is the photo (that's why most servers load slowly.)

Andras

bclswl0827 commented 5 years ago

It worth... In addition, it's better to let users host their background photos to imgur, host avatar to Gravatar and change the icons to SVG icons ( like Font Awesome ), not the icons in gfx folder, this way, the speed of loading may be faster than before.


In one word, try to make OpenWebRX which is installed in localhost only provide with WebSockets and basical HTML page (index.wrx).