Just noticed that main.js script execution based on page slug is no longer working on latest roots.
Upon a further search we find out that body class is missing because, there is no hooks to WP body_class hook which was exists on previous roots version.
Quick fix:
/**
* Add and remove body_class() classes
*/
function roots_body_class($classes) {
// Add post/page slug
if (is_single() || is_page() && !is_front_page()) {
$classes[] = basename(get_permalink());
}
// Remove unnecessary classes
$home_id_class = 'page-id-' . get_option('page_on_front');
$remove_classes = array(
'page-template-default',
$home_id_class
);
$classes = array_diff($classes, $remove_classes);
return $classes;
}
add_filter('body_class', 'roots_body_class');