http://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692019-02-21T08:25:15ZTYPO3 ForgeTYPO3 Core - Feature #87756: preload CSS (loadCSS)http://forge.typo3.org/issues/87756?journal_id=3952982019-02-21T08:25:15ZGeorg Ringer
<ul><li><strong>Priority</strong> changed from <i>Must have</i> to <i>Should have</i></li></ul> TYPO3 Core - Feature #87756: preload CSS (loadCSS)http://forge.typo3.org/issues/87756?journal_id=4170102020-02-28T14:12:40ZKim Christiansenchristiansen@new-communication.de
<ul></ul><p>The filament group recommends a new implementation:</p>
<pre><code class="html syntaxhl" data-language="html"><span class="nt"><link</span> <span class="na">rel=</span><span class="s">"stylesheet"</span> <span class="na">href=</span><span class="s">"/path/to/my.css"</span> <span class="na">media=</span><span class="s">"print"</span> <span class="na">onload=</span><span class="s">"this.media='all'"</span><span class="nt">></span>
</code></pre>
<p><a class="external" href="https://www.filamentgroup.com/lab/load-css-simpler/">https://www.filamentgroup.com/lab/load-css-simpler/</a></p>
<p>So could it be possible to add the onload attribute instead?</p>
<pre>
includeCSS.file1.onload = this.media='all'
</pre> TYPO3 Core - Feature #87756: preload CSS (loadCSS)http://forge.typo3.org/issues/87756?journal_id=4328952020-10-07T15:57:02ZKim Christiansenchristiansen@new-communication.de
<ul></ul><p>In TYPO3 10 you could include the css on the filament group way like this in fluid:</p>
<pre>
<f:asset.css identifier="mycss" href="EXT:yourextension/path/to/css/mycss.css" media="print" additionalAttributes="{onload:'this.media=\'all\''}" />
</pre> TYPO3 Core - Feature #87756: preload CSS (loadCSS)http://forge.typo3.org/issues/87756?journal_id=4329112020-10-07T18:41:41ZGerrit Code Review
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Under Review</i></li></ul><p>Patch set 1 for branch <strong>master</strong> of project <strong>Packages/TYPO3.CMS</strong> has been pushed to the review server.<br />It is available at <a class="external" href="https://review.typo3.org/c/Packages/TYPO3.CMS/+/66073">https://review.typo3.org/c/Packages/TYPO3.CMS/+/66073</a></p> TYPO3 Core - Feature #87756: preload CSS (loadCSS)http://forge.typo3.org/issues/87756?journal_id=4421852021-04-01T23:57:07ZMarco H
<ul></ul><p>Kim Christiansen wrote in <a href="#note-3">#note-3</a>:</p>
<blockquote>
<p>In TYPO3 10 you could include the css on the filament group way like this in fluid:</p>
<p>[...]</p>
</blockquote>
<p>Doesn't work with concatenation though, right?</p> TYPO3 Core - Feature #87756: preload CSS (loadCSS)http://forge.typo3.org/issues/87756?journal_id=4587832021-11-29T13:23:17ZGerrit Code Review
<ul></ul><p>Patch set 2 for branch <strong>main</strong> of project <strong>Packages/TYPO3.CMS</strong> has been pushed to the review server.<br />It is available at <a class="external" href="https://review.typo3.org/c/Packages/TYPO3.CMS/+/66073">https://review.typo3.org/c/Packages/TYPO3.CMS/+/66073</a></p>