# Dynamic loading

Next diagram represents the network flow to load the most recent version of the library. When the library is loaded into the application, this mechanism performs these steps:
* download a manifest file, that includes the list of available versions
* figure out what available version is `patch compatible` with the current one.
* download and load that version

In case an error occur in any of these steps, the `fallback` library is loaded. This librar is included in the current package, installed from `npm`.

![Dynamic loading](./images/dynamicLoading.png)


This mechanism may be skipped by adding a parameter in the `CfLog` constructor:

```js
    new CfLog(<key>, {skipDynamicLoading: true})
```


[Back](./Readme.md)