-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking: JS modernization #3590
Comments
If #4189 gets merged, the ace editor is the only remaining asset in application.old.js. We use an (outdated) rails gem to add support using the sprockets pipeline. The problem with this library is that it contains A LOT of plugins to support all languages. These are loaded on demand (by file name) to keep the default package size small-ish. There are a number of alternatives to remove this last remaining entry
If this is done, the old application.js file can be removed but this also means that the sprockets gem and its config and deployment stuff can probably be removed. |
As an update to my previous comment: Sprockets is still used for the newer JS as well, so it can't be removed. What we can do is leave ace as is, but rename the file from application_old to ace editor and only include it where needed. |
The goal of this issue is to track the "older" parts of our JavaScript code. There are 3 separate parts:
jQuery
$(function() {})
. This can probably be replaced by a jQuery-less equivalent Remove jquery usage for detecting if the dom is ready #3692application.js
ace: not really straightforward on how to move this. We now use a ruby gem for this that hooks into sprockets. The library has a lot of individual files for programming languages that are loaded on demand so not sure how bundling would work.TypeScript
The text was updated successfully, but these errors were encountered: