Since chronic loads quite a bit of files, it can be somewhat of a drag when you require it in a web page. Why not use autoload to keep load times minimal depending on how or if chronic is actually used? There are no obvious drawbacks to doing so, and a lot of other projects have already done something similar. Here is what chronic.rb looks like after I made the necessary changes:
Since chronic loads quite a bit of files, it can be somewhat of a drag when you require it in a web page. Why not use autoload to keep load times minimal depending on how or if chronic is actually used? There are no obvious drawbacks to doing so, and a lot of other projects have already done something similar. Here is what chronic.rb looks like after I made the necessary changes: