MyBB Community Forums

Full Version: All javascript libraries self hosted
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Advantages of external hosting:
- possibility that the script is already cached
- script may load faster, depending on the external server's bandwidth availability and geolocation (the reverse can be true as well)
- less bandwidth usage from your own server

Disadvantages:
- website is no longer self contained + cross domain scripting is a bit ugly
- reliance on a 3rd party for proper site functionality (eg servers could be down, blocked, or slow, or they simply just stop providing the CDN service (this can be somewhat mitigated with above suggestion)) + security (eg DNS hijacking of CDN)
- possibly could load slower due to requiring a 2nd DNS request
- privacy concerns
- less control over script contents

I believe that CDNs should NOT be used by default.
What about a javascript manager? Template manager, CSS manager, but no JS manager. No software does.

http://community.mybb.com/thread-85031.html

We never finished developing it, but it might be worth considering. If it isn't implemented, I might find a dev to finish coding it.
(2012-12-31, 04:11 AM)Audentio Wrote: [ -> ]What about a javascript manager? Template manager, CSS manager, but no JS manager. No software does.

http://community.mybb.com/thread-85031.html

We never finished developing it, but it might be worth considering. If it isn't implemented, I might find a dev to finish coding it.

+1 for the idea. It would come quite handy at many occasions.
Yeah a manager for this would be good then its self hosted and you can keep it up to date easily.
(2012-12-31, 04:11 AM)Audentio Wrote: [ -> ]What about a javascript manager? Template manager, CSS manager, but no JS manager. No software does.

http://community.mybb.com/thread-85031.html

We never finished developing it, but it might be worth considering. If it isn't implemented, I might find a dev to finish coding it.

This looks awesome.
In general I think it would be a good idea to have a more unified assets manager (most PHP frameworks offer one anyway) that would also allow some sort of a build process, i.e. concatenate files together and minify/gzip them as much as possible. You would then have a single file for all your styles and another for all the JavaScript (i.e. less HTTP requests), which would be nice for deploying your site to users (as long as you don't go around editing styles and scripts too often).
Pages: 1 2