Project

General

Profile

Actions

Feature #24463

closed

Epic #55575: Streamline JavaScript Code in the TYPO3 Backend

Add Javascript-Files from CDN

Added by Anonymous over 13 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2011-01-03
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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)

Actions

Also available in: Atom PDF