Codex Neve
  • Developer Documentation
  • Visual Guide

Codex Neve

Search the Code Reference for more information about Neve's hooks.

Skip to content
Filter by type:
Search
Browse: Home / Classes / Module / Module::add_rel_preload()

Module::add_rel_preload( string $html, string $handle )

Add onload, rel and as for typekit script.


Description

https://joshuatz.com/posts/2019/wordpress-script-and-style-tags-adding-defer-async-and-lazy-load/


Parameters

$html

(Required) Current html code.

$handle

(Required) Current script handle.


Return

(string)


Source

File: includes/modules/typekit_fonts/module.php


			

Expand full source code Collapse full source code View on Github

© Vertigo Studio SRL 2025