dev-master
9999999-devEnqueue scripts, take control of your Javascript
MIT
The Requires
- php >=5.5.0
dev-laravel4
dev-laravel4Enqueue scripts, take control of your Javascript
The Requires
- php >=5.4.0
Enqueue scripts, take control of your Javascript
In modern web applications, script execution should be done at the end of a page's loading. This class is a very simple wrapper for this: queue scripts and render them when needed, (*2)
Via Composer, (*3)
``` bash $ composer require rocket/script, (*4)
### Service Provider `\Rocket\UI\Script\Support\Laravel5\ServiceProvider` ### Middleware (App\Http\Kernel.php) `\Rocket\UI\Script\Support\Middleware\ScriptMiddleware` ## Usage ``` php JS::ready(' console.log("you\'re a wizard, Harry!"); '); JS::ready(' console.log("Dobby is freeeee!"); ');
Will produce, (*5)
``` javascript, (*6)
```, (*7)
All the tests live in the main project., (*8)
Please see CONTRIBUTING for details., (*9)
The MIT License (MIT). Please see License File for more information., (*10)
Enqueue scripts, take control of your Javascript
MIT
Enqueue scripts, take control of your Javascript