How Intercode builds and loads JavaScript
· 11 min read
Intercode is an open source Ruby on Rails application with a (mostly) single-page app frontend. Virtually all "pages" in the web application are resolved and rendered on the frontend using react-router. These pages then load the data they need using Intercode's GraphQL API, which is implemented on the Rails server side using graphql-ruby.
Intercode doesn't follow the recommended strategy for JavaScript loading in Rails applications. This blog post is an attempt to explain why, and what we do instead.