omit type text/css in html5
parent
86ebf5abad
commit
53025da245
|
@ -36,7 +36,7 @@ trait AssetHelper { self: I18nHelper with SecurityHelper =>
|
|||
cssAt(s"css/$name.${if (minifiedAssets) "min" else "dev"}.css")
|
||||
|
||||
private def cssAt(path: String): Frag =
|
||||
link(href := assetUrl(path), tpe := "text/css", rel := "stylesheet")
|
||||
link(href := assetUrl(path), rel := "stylesheet")
|
||||
|
||||
// load scripts in <head> and always use defer
|
||||
def jsAt(path: String): Frag = script(deferAttr, src := assetUrl(path))
|
||||
|
|
|
@ -42,7 +42,7 @@ trait ScalatagsSnippets extends Cap {
|
|||
def iconTag(icon: String): Tag = i(dataIcon := icon)
|
||||
def iconTag(icon: Char, text: Frag): Tag = iconTag(icon.toString, text)
|
||||
def iconTag(icon: String, text: Frag): Tag = i(dataIcon := icon, cls := "text")(text)
|
||||
val styleTag = tag("style")(tpe := "text/css")
|
||||
val styleTag = tag("style")
|
||||
val ratingTag = tag("rating")
|
||||
val countTag = tag("count")
|
||||
val goodTag = tag("good")
|
||||
|
|
|
@ -34,7 +34,6 @@ object layout {
|
|||
link(
|
||||
id := "piece-sprite",
|
||||
href := assetUrl(s"piece-css/$ps.css"),
|
||||
tpe := "text/css",
|
||||
rel := "stylesheet"
|
||||
)
|
||||
}
|
||||
|
@ -224,7 +223,7 @@ object layout {
|
|||
),
|
||||
ctx.transpBgImg map { img =>
|
||||
raw(
|
||||
s"""<style type="text/css" id="bg-data">body.transp::before{background-image:url('$img');}</style>"""
|
||||
s"""<style id="bg-data">body.transp::before{background-image:url('$img');}</style>"""
|
||||
)
|
||||
},
|
||||
fontPreload,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<meta http-equiv="refresh" content="10">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Temporarily disabled • lichess.org</title>
|
||||
<style type="text/css">
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: 'PT Serif';
|
||||
font-style: italic;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Maintenance in progress • lichess.org</title>
|
||||
<style type="text/css">
|
||||
<style>
|
||||
body {
|
||||
text-align: center;
|
||||
font: 18px 'Noto Sans', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, Sans-Serif;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Server error • lichess.org</title>
|
||||
<style type="text/css">
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: 'PT Serif';
|
||||
font-style: italic;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Timeout • lichess.org</title>
|
||||
<style type="text/css">
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: 'PT Serif';
|
||||
font-style: italic;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Too many requests • lichess.org</title>
|
||||
<style type="text/css">
|
||||
<style>
|
||||
html, body, a {
|
||||
font:16px monospace;
|
||||
background: #000;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>lichess - Sound Test Page</title>
|
||||
<style type="text/css">
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
font: 16px monospace;
|
||||
|
|
|
@ -103,7 +103,6 @@ function applyBackground(data: BackgroundData, list: Background[]) {
|
|||
$('body').data('theme', key);
|
||||
$('link[href*=".' + prev + '."]').each(function(this: HTMLElement) {
|
||||
var link = document.createElement('link');
|
||||
link.type = 'text/css';
|
||||
link.rel = 'stylesheet';
|
||||
link.href = $(this).attr('href').replace('.' + prev + '.', '.' + key + '.');
|
||||
link.onload = () => setTimeout(() => this.remove(), 100);
|
||||
|
|
|
@ -12,7 +12,7 @@ const loadedCss = new Map();
|
|||
export const loadCss = (url: string) => {
|
||||
if (!loadedCss.has(url)) {
|
||||
loadedCss.set(url, true);
|
||||
$('head').append($('<link rel="stylesheet" type="text/css" />').attr('href', assetUrl(url)));
|
||||
$('head').append($('<link rel="stylesheet" />').attr('href', assetUrl(url)));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue