source/DomCssAndJavascriptByDanielGPwithCDN.php
private function setJavascriptFileCDNforHighChartsMain($jsFileName, $libName)
    {
        $jsFN            = $this->sanitizeString($jsFileName);
        $jsVersionlessFN = str_replace([$libName . '-', '.js'], '', pathinfo($jsFileName)['basename'])
            . ($libName === 'exporting' ? '/modules' : '');
        if (strpos($jsFileName, $libName) !== false) {
            return [
                true,
                $this->sCloundFlareUrl . 'highcharts/' . $jsVersionlessFN . '/' . $libName . '.js',
                '<script>!window.Highcharts && document.write(\'<script src="' . $jsFN . '">\x3C/script>\')</script>',
            ];
        }
        return null;
    }
private function setJavascriptFileCDNforHighChartsMain($jsFileName, $libName)
    {
        $jsFN            = $this->sanitizeString($jsFileName);
        $jsVersionlessFN = str_replace([$libName . '-', '.js'], '', pathinfo($jsFileName)['basename'])
            . ($libName === 'exporting' ? '/modules' : '');
        if (strpos($jsFileName, $libName) !== false) {
            return [
                true,
                $this->sCloundFlareUrl . 'highcharts/' . $jsVersionlessFN . '/' . $libName . '.js',
                '<script>!window.Highcharts && document.write(\'<script src="' . $jsFN . '">\x3C/script>\')</script>',
            ];
        }
        return null;
    }
private function setJavascriptFileCDNforHighChartsMain ( $ jsFileName , $ libName ) { $ jsFN = $ this -> sanitizeString ( $ jsFileName ) ; $ jsVersionlessFN = str_replace ( [ $ libName . '-' , '.js' ] , '' , pathinfo ( $ jsFileName ) [ 'basename' ] ) . ( $ libName === 'exporting' ? '/modules' : '' ) ; if ( strpos ( $ jsFileName , $ libName ) !== false ) { return [ true , $ this -> sCloundFlareUrl . 'highcharts/' . $ jsVersionlessFN . '/' . $ libName . '.js' , '<script>!window.Highcharts && document.write(\'<script src="' . $ jsFN . '">\x3C/script>\')</script>' , ] ; } return null ; }
Returns an array with CDN call of a known Javascript library
and fall-back line that points to local cache of it
specific for HighCharts

@param string $jsFileName
@param string $libName
@return array
Returns an array with CDN call of a known Javascript library and fall - back line that points to local cache of it specific for HighCharts