getify edited this page Sep 13, 2010 · 3 revisions

fLABjs is a special API wrapper around LABjs which adapts the code to work properly in a file:// local filesystem environment. There are a number of things with core LABjs does which are not appropriate for local filesystems, such as XHR, special path handling rules, etc.

fLABjs is specifically designed to be included in a page and only operate when that page is viewed with file:// protocol. However, your build/deployment system should not send fLAB.js out into production http/https page usage as it’s unnecessary page weight and keeps itself disabled in those usages anyway.

Using fLABjs from an API standpoint is exactly identical to LABjs, so your code will not have to change at all.

Simply include the fLAB.js file right after the LAB.js file in your page, and the API will properly and transparently wrap itself to make your local file:// usage work correctly.


<script src=“LAB.js” type=“text/javascript”></script>
<script src=“fLAB.js” type=“text/javascript”></script> <!— only include in dev environment —>
<script type=“text/javascript”>

Clone this wiki locally
You can’t perform that action at this time.
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.
Press h to open a hovercard with more details.