Table of contents:
The Developer tab is displayed only if the site is in Developer’s mode. In order to switch to this mode, enter the following in the console Magento server:
bin/magento deploy:mode:set developer
If the command is correct, then console with put out the following line:
Switched to developer mode.
Minification is the process of deleting odd components like spaces or symbols from JS files; as a result, the size of the code is decreased and website loading is improved.
However, there is a disadvantage in these processes: you can exclude some scripts from the package, but you can’t choose certain scripts for a certain page.
In Vendor/Theme/etc/view.xml you can modify the package size and exclude certain scripts from the package.
The default package size is 1mb, and you get a clear understanding of how many packages will be created from the file if you know its size (3mb file means 3 packages). If the size is too small, you will probably get 10 and more small bundles that will block each other during the rendering. Bear in mind that packages can’t load asynchronously. We can also exclude certain scenarios from packages; they will be loaded with RequireJS if necessary.
As you can see, some scripts loaded separately via Require JS and six scripts got bundled.
Wrapping it up