Angaben zum Datum
Datum aus der Quelle.
Erstmals gesehen am .
Inertia: Kleinere und schneller geparste Page-Daten
Optional lassen sich die initialen Inertia-Page-Daten aus einem <script type="application/json">-Element laden, was die Datengröße deutlich reduziert und das Parsen beschleunigt.
Pull request by @bram-pkg
Opt-in support was added for loading the initial Inertia page data from a <script type="application/json"> element instead of the body tag. This results in a greatly reduced initial page data size, faster parsing, and makes the initial page data a breeze to inspect with your browser's dev tools.
You can opt in to this behavior as follows:
createInertiaApp({
// ...
defaults: {
future: {
useScriptElementForInitialPage: true,
},
},
});