Revert "Add early reply header to first requests"
This reverts commit fa60c3ea53
.
This commit is contained in:
parent
fa60c3ea53
commit
94e08c3657
@ -7,7 +7,7 @@
|
||||
<meta name="description" content="Track current and historical gold price trends for the World of Warcraft (WoW) in game token, including the US, EU, TW, and KR regions. Prices updated every minute. Simple, quick, and easy info, no ads or tracking, ever.">
|
||||
<link rel="preconnect" href="https://data.wowtoken.app">
|
||||
<link rel="dns-prefetch" href="https://data.wowtoken.app">
|
||||
<link rel="preload" href="https://data.wowtoken.app/token/current.json?kv-response=true" as="fetch" type="application/json" crossorigin="anonymous">
|
||||
<link rel="preload" href="https://data.wowtoken.app/token/current.json" as="fetch" type="application/json" crossorigin="anonymous">
|
||||
<link rel="preload" href="https://data.wowtoken.app/token/history/us/72h.json" as="fetch" type="application/json" crossorigin="anonymous">
|
||||
</head>
|
||||
<body>
|
||||
|
@ -29,7 +29,6 @@ let currentRegionSelection = '';
|
||||
let currentTimeSelection = '';
|
||||
let currentAggregateSelection = '';
|
||||
let startYAtZero = false;
|
||||
let firstLoad = true;
|
||||
const currentPriceHash = {
|
||||
us: 0,
|
||||
eu: 0,
|
||||
@ -125,13 +124,7 @@ function lookupTimeUnit(query){
|
||||
|
||||
|
||||
async function callUpdateURL() {
|
||||
let url = "https://data.wowtoken.app/token/current.json"
|
||||
if (firstLoad) {
|
||||
url = `${url}?kv-response=true`;
|
||||
firstLoad = false;
|
||||
}
|
||||
|
||||
let resp = await fetch(url);
|
||||
let resp = await fetch("https://data.wowtoken.app/token/current.json");
|
||||
let data = await resp.json();
|
||||
updateTokens(data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user