[TASK] Documentation links to invalid URL
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / 7.3 / Feature-66698-AddIntegrityPropertyToJavaScriptFiles.rst
1
2 .. include:: ../../Includes.txt
3
4 ============================================================
5 Feature: #66698 - Add integrity property to JavaScript files
6 ============================================================
7
8 See :issue:`66698`
9
10 Description
11 ===========
12
13 Add a property `integrity="some-hash"` to JavaScript files via TypoScript
14
15 `page.includeJSLibs.<array>.integrity = some-hash`
16
17 This patch affects the TypoScript PAGE properties
18
19 * includeJSLibs
20 * includeJSFooterLibs
21 * includeJS
22 * includeJSFooter
23
24 Usage:
25 ------
26
27 .. code-block:: typoscript
28 :emphasize-lines: 6
29
30 page {
31 includeJS {
32 jQuery = fileadmin/jquery-1.10.2.min.js
33 jQuery.disableCompression = 1
34 jQuery.excludeFromConcatenation = 1
35 jQuery.integrity = sha256-C6CB9UYIS9UJeqinPHWTHVqh/E1uhG5Twh+Y5qFQmYg=
36 }
37 }
38
39 .. hint::
40 Integrity hashes may be generated using https://www.srihash.org/.
41
42
43 .. index:: JavaScript, TypoScript, Frontend