We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16f8c4a commit 166d7a9Copy full SHA for 166d7a9
static/blogcard.js
@@ -174,12 +174,12 @@
174
}
175
176
// ページ読み込み時に自動取得設定のあるブログカードを処理
177
- function initBlogCards() {
+ async function initBlogCards() {
178
log('Initializing blog cards...');
179
const cards = document.querySelectorAll('.blogcard[data-auto-fetch="true"]');
180
log('Found', cards.length, 'blog cards with auto-fetch');
181
182
- cards.forEach(async (card) => {
+ await Promise.all(Array.from(cards).map(async (card) => {
183
const url = card.getAttribute('data-url');
184
log('Processing card for URL:', url);
185
@@ -203,7 +203,7 @@
203
if (ogpData) {
204
updateBlogCard(card, ogpData);
205
206
- });
+ }));
207
208
209
// DOMContentLoaded後に初期化
0 commit comments