mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-01-31 07:16:17 +00:00
Fix race condition with pages trying to use assets before they’re loaded
This commit is contained in:
parent
5569fcd3bb
commit
e0677761f6
@ -19,7 +19,8 @@ exports.everything = function (prod = false) {
|
|||||||
const PublicFiles = await loadPublicFiles();
|
const PublicFiles = await loadPublicFiles();
|
||||||
|
|
||||||
// load data for all the files in that folder
|
// load data for all the files in that folder
|
||||||
await Promise.map(PublicFiles.all, (p) => p.load(PublicFiles));
|
await Promise.map(PublicFiles.assets, (p) => p.load());
|
||||||
|
await Promise.map(PublicFiles.pages, (p) => p.load(PublicFiles));
|
||||||
|
|
||||||
// prime tweet data for all pages
|
// prime tweet data for all pages
|
||||||
const pages = await primeTweets(PublicFiles.pages);
|
const pages = await primeTweets(PublicFiles.pages);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user