Skip to content

Commit

Permalink
refactor: css preload
Browse files Browse the repository at this point in the history
  • Loading branch information
im-machakata committed Mar 22, 2023
1 parent e72b47a commit 60c5070
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Components/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ class Link extends BaseComponent
const HREF = 'href';
const CONTENT = 'content';
const MANIFEST = 'rel="manifest"';
const STYLESHEET = 'stylesheet';
const PRELOAD_CSS = 'rel="preload" onload="this.onload=null;this.rel=\'stylesheet\'"';
const CSS = 'text/css';
protected $elementName = 'link';
protected $closeTag = false;
}

0 comments on commit 60c5070

Please sign in to comment.