2017 © Pedro PelĂĄez
 

library script

Enqueue scripts, take control of your Javascript

image

rocket/script

Enqueue scripts, take control of your Javascript

  • Saturday, January 2, 2016
  • by onigoetz
  • Repository
  • 1 Watchers
  • 0 Stars
  • 133 Installations
  • JavaScript
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 9 % Grown

The README.md

Script queueing

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads, (*1)

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)

Install

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)

Testing

All the tests live in the main project., (*8)

Contributing

Please see CONTRIBUTING for details., (*9)

Credits

License

The MIT License (MIT). Please see License File for more information., (*10)

The Versions

02/01 2016

dev-master

9999999-dev

Enqueue scripts, take control of your Javascript

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

04/11 2014

dev-laravel4

dev-laravel4

Enqueue scripts, take control of your Javascript

  Sources   Download

The Requires

  • php >=5.4.0