Example for f:page.headerData is wrong

Open Beginner friendly
#341 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
72/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Active
Domain
documentation

Research direction

Find the documentation example for f:page.headerData and review how it describes the preload link for a font. Check the TYPO3-generated CSS and JavaScript ordering mentioned in the issue, then update the example or its explanation to reflect when preload, dns-prefetch, or preconnect is useful. Done when the example no longer implies that this preload is useful in the described order.

Written by the indexing model from the issue text.

Description

The example contains <link rel="preload" href="/fonts/myfont.woff2" as="font" type="font/woff2" crossorigin="anonymous"> which is in all likelyhood pointless as CSS loaded by other TYPO3 APIs come before anything added by the viewhelper. Which means that the browser has already loaded and parsed the CSS and therefore is loading the font already.

dns-prefetch and preconnect may make sense depending on the use case. Though IMHO they should also come in the HTML before the main CSS/JS block that TYPO3 generates.

Dominant language
Shell
Stars
0
Forks
29
Avg merge
2d 19h
Merged PRs (30d)
10

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from TYPO3-Documentation/TYPO3CMS-Reference-ViewHelper

All issues in TYPO3-Documentation/TYPO3CMS-Reference-ViewHelper

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.