Optimization framework for web pages and applications
to: { type: 'Png' }, }); ``` ## Manipulating the graph Populating an AssetGraph with all the assets it can find on a given URL or directory on disk: ```javascript var assetGraph = new AssetGraph({ root: 'http://example.com/' }); await assetGraph.loadAssets('http://example.com/'); await assetGraph.populate(); ``` Loading a specific set of files: ```javascript var assetGraph = new AssetGraph({ root: 'http://example.com/' }); assetGraph.loadAssets('index.html', 'foo/bar.css'); ``` Moving all JavaScript assets to a different directory: ```javascript assetGraph.moveAssets({ type: 'JavaScript' }, 'static/js/'); ``` Removing all assets that are not reachable from the Html assets: ```javascript assetGraph.removeAssets({ isDirty: true }); ``` Removing all Html assets and the relations that point at them: ```javascript assetGraph.removeAssets({ type: 'Html' }, true); ``` Inlining all assets that are referenced from a Html or Css asset: ```javascript assetGraph.inlineRelations({ to: { isExternal: false } }); ``` Bundling all JavaScript and CSS assets: ```javascript assetGraph.bundleRelations({ type: { $in: ['JavaScript', '
How the donated funds are distributed
Kivach works on the Obyte network, and therefore you can track all donations.