You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When this request is received by the API server, query is parsed to create a JSON object. Using this object, server will retrieve all the specific libraries requested and concatenate all of them in the same order as it is requested.
The only restriction is the CSS & JS can not be mixed up in same request as it can not be loaded by the same HTML tag. Also, Images cannot be requested in the same way. But map files can be requested in a similar way in future versions if really needed.
How the feature is useful
This could decrease the request count. When all libraries needed at loaded in a single request, there will not be any blocking requests and it increases the web performance of the website as part of optimization.
The text was updated successfully, but these errors were encountered:
Feature request
Feature description
Single API URL for a chain of libraries.
This can be a similar format for cdnjs API.
<link href="https://api.cdnjs.com/libraries/css?load=twitter-bootstrap@4.5.0:bootstrap.min.css;photoswipe@4.1.3:photoswipe.min.css,default-skin/default-skin.min.css;" rel="preload" as="style" onload="this.onload=null;this.rel='stylesheet'">
<script src="https://api.cdnjs.com/libraries/js?load=jquery@3.5.1:jquery.min.js;photoswipe@4.1.3:photoswipe.min.js,photoswipe-ui-default.min.js;" defer type="text/javascript">
When this request is received by the API server, query is parsed to create a JSON object. Using this object, server will retrieve all the specific libraries requested and concatenate all of them in the same order as it is requested.
The only restriction is the CSS & JS can not be mixed up in same request as it can not be loaded by the same HTML tag. Also, Images cannot be requested in the same way. But map files can be requested in a similar way in future versions if really needed.
How the feature is useful
This could decrease the request count. When all libraries needed at loaded in a single request, there will not be any blocking requests and it increases the web performance of the website as part of optimization.
The text was updated successfully, but these errors were encountered: