# asp/assets/load

```php
apply_filters('asp/assets/load', $load);
```

### Parameters

* **$load** *(bool)* - when true, the CSS and JS files are loaded

### Examples

```php
// Stops loading Ajax Search Pro assets everywhere except the archives
add_filter( 'asp/assets/load', function ( $load ) {
    if ( is_archive() ) {
        return true;
    }
    return false;
}, 10, 1 );

// Stops loading Ajax Search Pro assets everywhere except singular pages
add_filter( 'asp/assets/load', function ( $load ) {
    if ( is_singular() ) {
        return true;
    }
    return false;
}, 10, 1 );

```
