[
https://issues.apache.org/jira/browse/CB-11415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16088191#comment-16088191
]
Filip Maj commented on CB-11415:
--------------------------------
I would say this issue is only relevant on the browser platform. For the other
platforms, each plugin's JS is loaded from storage local on the device, so the
number of requests has very negligible performance impact. In a browser
environment, though, it makes sense.
I could see this feature existing as part of the tooling for the
cordova-browser platform, like you mentioned, a pre-build/after-prepare
concatenation/minification step.
> Can we merge all the cordova plugin objects in one single file
> --------------------------------------------------------------
>
> Key: CB-11415
> URL: https://issues.apache.org/jira/browse/CB-11415
> Project: Apache Cordova
> Issue Type: Improvement
> Components: cordova-browser
> Environment: All the platforms
> Reporter: Arcoiris Labs
> Priority: Minor
> Labels: build, performance
>
> Hi,
> Is it possible to merge all the plugin objects in one single file so that the
> number of HTTP requests to pull the cordova plugin libraries shall be reduced
> and the performance can be improved??
> The reason I am asking for this feature because when creating an app that
> contains 20 plugins so then the browser has to request unminified files 20
> times before the body is rendered. If we collab all the plugins in a single
> file, all the plugins shall be accessed from a single file.
> Also we can use uglify/minify the plugin file during after_prepare hook which
> can reduce the file size, which can be totally upto the developer's choice.
> It could also be a feature in the CLI itself that will minify and uglify the
> plugins during release mode
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]