You are here

README.txt in LABjs 6

Same filename and directory in other branches
  1. 7 README.txt
= INTRODUCTION =

LABjs is the performance script loader. It loads all your JavaScript in parallel.
Of course, this module is only useful when JavaScript preprocess is
disabled.

Project homepage: http://drupal.org/project/labjs

= INSTALL =

- Enable this module

= CONFIGURATION =

If there is a problem, go to admin/settings/performance/labjs and enable the
option to rewrite JavaScript blocks in page content/closure. By default, this
module rewrites only the script block in header.

= COMPATIBILITY =

LABjs, like any other script loader, does not support JavaScript with
document.write() calls at the moment.

If you don't want LABjs to process your script, use this:
    drupal_add_js((defined('LABJS_EXCLUDE') ? LABJS_EXCLUDE . "\n" : "") . $myscript, 'inline');
If you want to use a JavaScript file, convert it into inline block, then use the
above code:
    document.write(unescape("%3Cscript src='/path/to/script.js' type='text/javascript'%3E%3C/script%3E"));


This module tries to maintain a maximum compatibility with all JavaScript code.
If you have any problem, please file an issue in the project homepage.

File

README.txt
View source
  1. = INTRODUCTION =
  2. LABjs is the performance script loader. It loads all your JavaScript in parallel.
  3. Of course, this module is only useful when JavaScript preprocess is
  4. disabled.
  5. Project homepage: http://drupal.org/project/labjs
  6. = INSTALL =
  7. - Enable this module
  8. = CONFIGURATION =
  9. If there is a problem, go to admin/settings/performance/labjs and enable the
  10. option to rewrite JavaScript blocks in page content/closure. By default, this
  11. module rewrites only the script block in header.
  12. = COMPATIBILITY =
  13. LABjs, like any other script loader, does not support JavaScript with
  14. document.write() calls at the moment.
  15. If you don't want LABjs to process your script, use this:
  16. drupal_add_js((defined('LABJS_EXCLUDE') ? LABJS_EXCLUDE . "\n" : "") . $myscript, 'inline');
  17. If you want to use a JavaScript file, convert it into inline block, then use the
  18. above code:
  19. document.write(unescape("%3Cscript src='/path/to/script.js' type='text/javascript'%3E%3C/script%3E"));
  20. This module tries to maintain a maximum compatibility with all JavaScript code.
  21. If you have any problem, please file an issue in the project homepage.