The clever bit about JSIO is the placeholder URLs – i.e. the “jsio.gif#…” that goes in your image src attributes and background-image CSS properties. Everything after the “#” is the filename of the image that should be displayed. It doesn’t have to be the filename at all, it could just be a single letter or number or symbol or whatever. It doesn’t matter to JSIO. To JSIO, everything after the “#” is just a key into the resources object that holds data uri encoded images. As long as the key is unique (which it will be if you use filenames, since no two files in the same directory can have the same name), JSIO is happy.
Using filenames as keys into our resources object is beneficial to humans. Much more beneficial than coordinates in a sprite, simply because (hopefully) the filenames are meaningful; they describe the image. In comparison to sprites, the JSIO resources object also makes maintaining your image data much easier as it is trivial to add or remove images without having to move other images around within the sprite (and consequently all coordinates referencing your moved image).
Another benefit of using filenames as keys into the JSIO resources object is for fallback. If JSIO detects your browser is IE7 or lower, it’ll strip out “jsio.gif#” leaving just your image key as the image src, which is hopefully a valid URL to the original image. Also, if JSIO detects you’re running IE8 and the image data is larger than 32KB it’ll do the same thing*.
* …but not yet in v1.0.0 alpha
Since the image key is after the “#” (it is the URL “fragment”), your browser won’t send multiple requests for the 1*1px jsio.gif file – it’ll just send one request, cache the response, and use it again. By the way, the jsio.gif image is just a transparent 1*1px gif (for maximum efficiency), but it could be an “spinner” image or something, which is shown temporarily whilst the JSIO resources file is downloaded.
—
This post is about JSIO – JSIO is a tiny library that allows you to make fewer requests to your server by packaging all your site image data in a JavaScript file in data uri format. The official site for JSIO can be found here: jsio.freestyle-developments.co.uk. You can read more about why I started this project here.
SEO-продвижение сайта https://seo-topteam.ru в Москве с запуском от 1 дня. Экспресс-анализ приоритетные правки оптимизация под ключевые запросы и регион. Работаем на рост позиций трафика и лидов. Подходит для бизнеса и услуг.
дайсон выпрямитель как отличить оригинал vypryamitel-dn-kupit-2.ru .
easyretailonline – Intuitive platform, buying products digitally is simple and efficient.
market collaboration hub – Informative advice, alliances explained clearly for market applications.
выпрямитель dyson ht01 купить выпрямитель dyson ht01 купить .
выпрямитель дайсон выпрямитель дайсон .
shopping done right – Gives a smooth impression that prioritizes usability.
intelligent skill builder – Offers actionable ideas for improving learning efficiency and scalable thinking.
DecisionClarityHub – Helps make smart strategic choices without confusion.
dyson выпрямитель для волос airstrait dyson выпрямитель для волос airstrait .
SmartDealsHub – Offers a platform for shoppers seeking the best value purchases.
reliablebondingcenter – Practical advice to handle commercial bonds with confidence and clarity.
long-term success hub – Easy-to-follow explanations make growth strategies accessible and practical.
Тяговые аккумуляторные https://ab-resurs.ru батареи для складской техники: погрузчики ричтраки электротележки штабелеры. Новые АКБ с гарантией помощь в подборе совместимость с популярными моделями доставка и сервисное сопровождение.
executiveplaybook – Practical and concise, readers can learn actionable strategies from leaders.
learnfromexpertinsights – Excellent site, expert insights are practical and easy to apply today.
DecisionHelperPro – Offers clear guidance, making choices feel simple and actionable.
KnowledgeBoostOnline – Offers lessons that feel intuitive and immediately useful.
build professional trust – Guidance is clear, professional alliances are easier to form.
фен выпрямитель дайсон airstrait фен выпрямитель дайсон airstrait .
strategic growth – Motivating advice, following a clear direction helps progress quickly.
strategic market foresight – Suggests a thoughtful approach to long-term e-commerce and market planning.
Продажа тяговых АКБ https://faamru.com для складской техники любого типа: вилочные погрузчики ричтраки электрические тележки и штабелеры. Качественные аккумуляторные батареи долгий срок службы гарантия и профессиональный подбор.
partnership insights platform – Very actionable, real-world examples illustrate alliance strategies well.
efficientbizadvice – Clear and practical, business tips are simple to understand and apply.
DigitalRetailSimplified – Shopping is straightforward with intuitive navigation and layout.
EnterpriseStrategyLink – Suggests a clear path for building effective partnerships.
strategicalliancescenter – Helps organizations implement reliable and mutually beneficial partnerships.
выпрямитель дайсон купить в москве выпрямитель дайсон купить в москве .
find flexible options – Overall, the variety makes exploring the site enjoyable.
fastbuyportal – User-friendly and efficient, purchasing items online is effortless.
value purchase hub – Fair pricing and easy navigation make shopping here straightforward and reliable.
BuildSmartFuture – Supports structured strategic planning without overwhelming new users.
ReliablePurchaseHub – Practical and safe, buying items online is effortless.
click for partnership knowledge – Useful resources, global partnerships explained in a clear way.
futuremoveplanner – Encourages actionable planning, suitable for strategic decision-making online.
clarity knowledge base – Excellent tips, complex topics are broken down effectively.
dealassureportal – Branding emphasizes safety, suitable for serious transactions.
trusted market partnerships – Insightful content, makes alliance concepts relatable and practical.
WorldwideRetailSpot – Secure and clear interface, browsing global products is hassle-free.
enterpriseplanningportal – Insightful and clear, enterprise frameworks are easy to grasp and use.
bargainfindercentral – Quickly discover the best deals with a hassle-free interface.
Online Retail Lab – Content is clear and practical, perfect for smooth online shopping.
marketrelationshub – Professional and reliable, guidance on market relationships is actionable and easy to apply.
Skill Building Hub – Straightforward guidance that helps enhance professional knowledge.
CustomerShopClick – Very clear and practical, online shopping feels effortless.
NextStepOpportunities – Platform highlights actionable insights for exploring professional growth.
explore sustainable growth – Helpful resources, I feel motivated to pursue steady progress.
daily purchase center – Easy to navigate and items are accessible quickly without delays.
securecommercialalliances – Feels safe and reliable, guidance on alliances is clear and actionable.