Issue Feature Closed

#24463Add Javascript-Files from CDN

Anonymous 01/03/11, 23:11 updated 03/25/15, 01:16

Description

At this moment, there is no possibility to load Javascript-Files from the internet.
The PageRenderer will insert only local files:
$properties[‘file’] = t3lib_div::resolveBackPath($properties[‘file’]);
$properties[‘file’] = t3lib_div::createVersionNumberedFilename($properties[‘file’]);

So if I use the follow config in HOOK:
$params[‘jsLibs’][‘jQueryTOOLS’] = array(
‘file’ => ‘https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js’,
‘section’ => t3lib_PageRenderer::PART_HEADER,
‘forceOnTop’ => true,
);
The file will not be loaded, because it is not on the filesystem.

This should work for jsLibs and jsFile

Best regards
Jürgen

(issue imported from #M16903)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.