How extjs Ext.require () works

I understand that let's say if we have

Ext.require([
  'Ext.ux.grid.FiltersFeature',
  'Ext.toolbar.Paging'
]);

it will translate these entries to some_path / ux / grid / FilterFeature.js etc.

but how

Ext.require([
  'Ext.grid.*',
]);

will work? he knows how many js files are below the grid / directory, so on the client side, how can he download them ?, it's kind of lazy loading, I mean, if some other file has a js child entry, it will allow download?

thank

+5
source share
2 answers

As part of the build process, we create a โ€œbootstrapโ€ file that contains information about which files exist. Thus, it does not request a file system, it just requests a download for everything under Ext.grid.

+7
source

. ExtJS, , . . , , , - SDK, , .

0

All Articles