2026年9月14日月曜日

BloggerではNavbarを表示させるとplatform.jsを読み込むよ

Blogger

Lock the Navbar widget so it stops loading platform.js The theme has shipped an empty Navbar1 includable since 2.0.0, but the widget was declared locked='false'. Blogger treats an unlocked widget's includable as overridable and renders its own stock Navbar markup instead, which loads apis.google.com/js/platform.js and calls gapi.load to mount a navbar iframe.

The skin hides #navbar-iframe, so the navbar is invisible on every install and the cost is pure waste: ~58 KB and a connection to a third Google origin on every page view. Locking the widget makes Blogger honour the empty includable.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

Lock the Navbar widget so it stops loading platform.js · puikinsh/Pixel-Blogger-Template@87b8ddf · GitHub
https://github.com/puikinsh/Pixel-Blogger-Template/commit/87b8ddfdd76df90d0af5531a22c3140328631e7e

58KBのムダ

空でもlocked='false'の場合は読み込むので、locked='true'に変更するか、利用しなければNavbar部分は削除推奨

関連エントリ

F(uriouz)

欲しいものリスト / 優先度の高いほしいものリスト / ☕を奢る
Donate 寄付 カンパ サポート Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.
詳細プロフィールを表示

0 comments:

スパム対策の為コメントをオフにしています。
Disqusは利用出来ます。

注: コメントを投稿できるのは、このブログのメンバーだけです。

...

Recent Posts

 
"The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License."