- 可傳入的多個圖片 URL,並依序載入。 - 可傳入參數`rwd`,決定不同螢幕寬度下的圖片。 - 可傳入參數`breakpoint`,修改螢幕寬度斷點。 - 嘗試依據參數`rwd`與 DPR(Device pixel ratio)偵測最適圖片,作為優先載入的對象(詳見「關於「抓取最適圖片」的設計限制」)。 - 當特定圖片載入成功時,則顯示該圖片;當特定圖片載入失敗時,則載入更大尺寸的圖片。 - 當所有圖片 URL 皆載入失敗時,載入預設圖片。 - 實作圖片載入動畫效果。 - 實作圖片 preload
Cross-referenced across 55 tracked directories
#3808
Popularity Rank
1 / 55
Listed In
Emerging
Adoption Stage
5/19/2022
Created
10
Forks
Run an AI-powered security scan to analyze this package's source code for vulnerabilities, prompt injection vectors, data exfiltration risks, and behavior mismatches.
Scans fetch actual source code from the GitHub repository, not just the README.
Magniv
PromptLayer is a platform for prompt engineering and tracks your LLM requests.
ai
A tiny (118 bytes), secure URL-friendly unique string ID generator
google-wombot
[](https://www.npmjs.com/package/@google/genai) [](https://www.npmjs.com/package/@google/genai)
...moredjfarrelly
AI adapter package for Inngest, providing type-safe interfaces to various AI providers including OpenAI, Anthropic, Gemini, Grok, and Azure OpenAI.
...more1
Open Issues
1/22/2026
Last Commit
Recently added to the ecosystem