Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ロールオーバー/ホバーなどのためにjquery uiアイコンをプリロードする最良の方法は何ですか?
これでうまくいくはずです:
var img = new Image(); img.src = '/themes/yourTheme/images/ui-icons_whatever.png';
これは非同期で行われるため、画像の読み込みが完了する前にページの残りの部分が読み込まれる場合がありますが、少なくとも、ユーザーがホバーやその他のイベントをトリガーする前に読み込まれる可能性があります。