Michael Keck a écrit :
Hi Marc,
Am 22.03.2010 21:52, schrieb Marc Delisle:
js/jquery would good and perhabs we should in js/ add a php library wich loads all needed jquery scripts. So we need only to add <script src="/js/jquery.php"></script>
In library/common.inc.php we are using $GLOBALS['js_include'] which is filled by all other scripts that need to load some js; are you proposing to stop using this mechanism?
My idea is to improve performance. The common.inc.php is a really large file with many functions and checks, wich are not needed all times. My opion is: perhabs it would be easier to manage and improve performance if we use for sending javascript (and perhabs in future stylesheets too) a extra parser.
Michael
In Rasmus Lerdorf's presentations, he showed benchmarks that proove that (in general), what slows down the application is the *number* of include files (whose opening require a system call), as PHP parsing is quite optimized.