I'm trying to load a script from "functions.php" just when i'm in the front page.  

I set a static page called "home" in the reading options.  

The home page loads the "front-page.php" template correctly but the conditional script loading doesn't work.

This is what I have in my "functions.php" file:

```
wp_register_script('nivoslider', get_bloginfo('template_url').'/js/libs/nivoslider.js', false, false, true);

if (is_front_page()) {   
   wp_enqueue_script('nivoslider'); 
}

```

Why isn't this loading as expected? What's happening here?