You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each one of these has to be manually loaded into the DOM via a GET during the bootstrap. This definitely causes performance issues, and probably hogs more memory than necessary. It'd be great if we could optionally include a single file in the index.html file, for example:
<script type="text/javascript" "bin/drupalgap.js"></script>
<script type="text/javascript" "bin/drupalgap.aggregated.js"></script><!-- all custom/contrib modules in one file -->
So to do this we would need a command which would round up all the .js files that make up the app's custom/contrib modules, and concatenate them all into a single .js file and write it to the bin directory. For example:
dgm aggregate js
We then would need a corresponding entry for settings.js, for example:
Then DG core would need to be updated to skip the manual loading during the bootsrap if aggregation is turned on.
It'd be extra cool if the command could automatically add/delete the JS script inclusion from the index.html file and update the settings.js file. Maybe settings.yaml is a pre-requisite to such features.
The text was updated successfully, but these errors were encountered:
Some apps can have lots of contrib modules and custom modules installed. Here's an example app's console.log() output during the bootstrap:
Each one of these has to be manually loaded into the DOM via a GET during the bootstrap. This definitely causes performance issues, and probably hogs more memory than necessary. It'd be great if we could optionally include a single file in the index.html file, for example:
So to do this we would need a command which would round up all the .js files that make up the app's custom/contrib modules, and concatenate them all into a single .js file and write it to the bin directory. For example:
We then would need a corresponding entry for settings.js, for example:
Then DG core would need to be updated to skip the manual loading during the bootsrap if aggregation is turned on.
It'd be extra cool if the command could automatically add/delete the JS script inclusion from the index.html file and update the settings.js file. Maybe settings.yaml is a pre-requisite to such features.
The text was updated successfully, but these errors were encountered: