private function loadAssetsFromDir($href, $attr, $title, $type = 'style')
    {
        $path = str_replace('\\', '/', $href);
        $assets = glob($path.'*');

        foreach ($assets as $src) {
            ($type == 'style') ? $this->setStyle($attr, $src, $title) : $this->setScript($src, $attr);
        }
    }