load php extensions later, add loadOnPages method

$p->loadOnPages($page) will cause the extension to only be loaded on
pages that are in the array $pages in $config.