ge Influence of nanomedicine mechanical properties on tumor targeting delivery By feeds.rsc.org Published On :: Chem. Soc. Rev., 2020, 49,2273-2290DOI: 10.1039/C9CS00575G, Tutorial ReviewZheng Li, Chen Xiao, Tuying Yong, Zifu Li, Lu Gan, Xiangliang YangThis tutorial review summarizes the influence of nanomedicine mechanical properties on drug delivery efficiency, antitumor efficacy and safety.The content of this RSS Feed (c) The Royal Society of Chemistry Full Article
ge Near-infrared laser driven white light continuum generation: materials, photophysical behaviours and applications By feeds.rsc.org Published On :: Chem. Soc. Rev., 2020, Advance ArticleDOI: 10.1039/C9CS00646J, Review ArticleJianhong Wu, Guojun Zheng, Xiaofeng Liu, Jianrong QiuThe current understanding, applications and future perspectives on near-infrared laser driven white light continuum generation in different materials are reviewed.To cite this article before page numbers are assigned, use the DOI form of citation above.The content of this RSS Feed (c) The Royal Society of Chemistry Full Article
ge Atomically dispersed metal–nitrogen–carbon catalysts for fuel cells: advances in catalyst design, electrode performance, and durability improvement By feeds.rsc.org Published On :: Chem. Soc. Rev., 2020, Advance ArticleDOI: 10.1039/C9CS00903E, Review ArticleYanghua He, Shengwen Liu, Cameron Priest, Qiurong Shi, Gang WuThe review provides a comprehensive understanding of the atomically dispersed metal–nitrogen–carbon cathode catalysts for proton-exchange membrane fuel cell applications.To cite this article before page numbers are assigned, use the DOI form of citation above.The content of this RSS Feed (c) The Royal Society of Chemistry Full Article
ge Bulk COFs and COF nanosheets for electrochemical energy storage and conversion By feeds.rsc.org Published On :: Chem. Soc. Rev., 2020, Advance ArticleDOI: 10.1039/D0CS00017E, Review ArticleJie Li, Xuechun Jing, Qingqing Li, Siwu Li, Xing Gao, Xiao Feng, Bo WangThe current advances, structure-property relationship and future perspectives in covalent organic frameworks (COFs) and their nanosheets for electrochemical energy storage (EES) and conversion (EEC) are summarized.To cite this article before page numbers are assigned, use the DOI form of citation above.The content of this RSS Feed (c) The Royal Society of Chemistry Full Article
ge Jane (2017) / directed by Brett Morgen [DVD]. By encore.st-andrews.ac.uk Published On :: [U.S.A.] : National Geographic, [2017] Full Article
ge House of flying daggers (2004) / directed by Zhang Yimou [DVD]. By encore.st-andrews.ac.uk Published On :: [U.K.] : Pathé, 2005. Full Article
ge Hitlerjunge Quex (1933) / directed by Hans Steinhoff [DVD]. By encore.st-andrews.ac.uk Published On :: [Germany] : International Historic Films Inc., [2007] Full Article
ge The hate u give (2018) / directed by George Tillman Jr [DVD]. By encore.st-andrews.ac.uk Published On :: [U.K.] : 20th Century Fox Home Entertainment, [2018] Full Article
ge The sensible stage : staging and the moving image / edited by Bridget Crone By prospero.murdoch.edu.au Published On :: Full Article
ge Theatre, exhibition, and curation : displayed & performed / Georgina Guy By prospero.murdoch.edu.au Published On :: Guy, Georgina, author Full Article
ge Some fun tonight! : the backstage story of how the Beatles rocked America : the historic tours of 1964-1966 / by Chuck Gunderson ; edited by Mark Naboshek By prospero.murdoch.edu.au Published On :: Gunderson, Chuck, author Full Article
ge The film and media creators' guide to music / Vasco Hexel (Royal College of Music, London) By prospero.murdoch.edu.au Published On :: Hexel, Vasco, 1980- author Full Article
ge Theatre, performance and cognition : languages, bodies and ecologies / edited by Rhonda Blair and Amy Cook By prospero.murdoch.edu.au Published On :: Full Article
ge The big beat : rock music in Australia 1978-83, through the pages of Roadrunner magazine / Donald Robertson By prospero.murdoch.edu.au Published On :: Robertson, Donald, author Full Article
ge Getting to the Heart of Digital Accessibility By feedproxy.google.com Published On :: 2019-08-01T13:45:18+00:00 Quick! Think of the word “developer” or “coder” — what’s the first thing that comes to mind? Maybe a whiteish male in his twenties living in a busy metropolis, wearing a nerdy t-shirt and hoodie? Someone a bit like Mark Zuckerberg? Or maybe a younger Bill Gates or Sergey Brin? Any of the dudes from the HBO series Silicon Valley, perhaps? Certainly no one like me. By tech standards, I’m old. I’m also female and a mother. I live in a midwestern town you’ve never heard of and will never visit — a town where the cows vastly outnumber the people. My hair color is (almost) natural and is no longer part of the ROYGBIV collection, so I have no perceived conference street cred. I own about a thousand geeky T-shirts, but never actually wear them in public, opting for more “girly” attire (or so was pointed out by a male colleague). On the surface, I look more suited to taking notes at a PTA meeting than writing code. I’m a bit of an outsider. A tech misfit. So when my 11-year-old daughter finished her recent coding camp and excitedly declared, “Now I’m a real developer, Mom, just like you!” there was the usual parent pride, but also a small piece of me that cringed. Because, as much as I support the STEM fields, and want the next generation of girls to be coding wizard-unicorn-ninjas, I really don’t want my own daughter to be a developer. The rationale behind this bold (and maybe controversial) statement comes from a place of protection. The tech world we live in today is far from perfect. I’ve endured my share of misogyny, self-doubt, and sexual harassment. Why wouldn’t I want to protect her from all of that? The (diversity) elephant in the (computer) room You’ve heard this story before: there is not enough diversity in tech. This puzzling trend seems to continue year after year, even though numerous studies show that by including more people from underrepresented communities, a company can increase its innovation, employee retention, and bottom line. Even with the recent push and supposed support for diversity and inclusivity from many Fortune 500 companies, women and female-identifying people still only hold 20% of all top tech jobs. The data from FY 2018 shows that the number of women in technical roles at three of the top tech giants was 24% for Adobe, 26% for Google, and 22% for Facebook. While these numbers show that there is still not enough representation for women, these numbers do reflect a slight increase from the previous year (FY 2017: Adobe 22%, Google 25%, Facebook 15%). But even with this upward trend of hiring women in tech roles, the marginal growth rate has not caught up with the real world. The tech workforce is seriously out of touch with reality if, in 2019, a demographic (women) that represents more than half the global population is still considered a minority. Sometimes this lack of diversity at the top level is blamed on a “pipeline” issue. The logic being: “If there are not enough girls who learn to code, then there will not be enough women who can code.” However, programs aimed at teaching girls how to code have skyrocketed in the past few years. Girls now make up about half of the enrollment in high-school coding classes and are scoring almost identically to their male classmates on standardized math and science tests, yet, young women make up only 18% of all Computer Science degrees. I have to wonder if this steep drop in interest has more to do with lack of representation in the tech sphere, than with girls and young women simply not being “smart enough” or “not interested” in working with code? At the very least, the lack of representation certainly doesn’t help. Of course, the diversity picture becomes even more abysmal when you consider other underrepresented groups such as people of color, people from the LGBTQ community, and people with disabilities. And while I really don’t like glossing over these deeper diversity issues in tech, because they are abundant and are much more grotesque failings than the male/female ratio, I also don’t feel qualified to speak about these issues. I encourage you to look to and value the voices of others who can speak with higher authority on these deeper diversity issues, such as Ire Aderinokun, Taelur Alexis, Imani Barbarin, Angie Jones, Fatima Khalid, Tatiana Mac, Charlie Owen, Cherry Rae, and so many others. And for those readers who are new to the topic of diversity in tech, watch Tatiana Mac’s recent conference talk How Privilege Defines Performance — it’s well worth the 35 minutes of your life. The four stages in the digital accessibility journey However you look at it, the numbers don’t lie. There are some pretty significant diversity issues in tech. So how do we fix this issue before the next wave of young developers join the tech workforce? Simple: teach developers to write accessible code. This may seem like a joke to some and stretch to others, but hear me out. When we talk about accessible code, what we are really talking about at its core is inclusiveness. The actual process of writing accessible code involves rules and standards, tests and tools; but inclusive development is more abstract than that. It’s a shift in thinking. And when we rethink our approach to development, we go beyond just the base level of simple code functionality. We instead think, how is this code consumed? How can we make it even more intelligible and easier for people to use? Inclusive development means making something valuable, not just accessible, to as many people as we can. That line of thinking is a bit abstract, so let’s go through an example. Let’s say you are tasked with updating the color contrast between the text on a webpage or app and the background. What happens at each stage in the accessibility journey? Stage 1: Awareness — You are brand new to digital accessibility and are still trying to understand what it is and how you can implement changes in your daily workflow. You may be aware that there is a set of digital accessibility guidelines that other developers follow, but you are a bit hazy on what it all means in a practical sense. Stage 2: Knowledge — You know a bit more about digital accessibility and feel comfortable using a few testing tools, so you run an automated accessibility test on your website and it flags a possible issue with the color contrast. Based on your awareness of the guidelines, you know the color contrast ratio between the text and the background needs to be a certain number and that you need a tool to test this. Stage 3: Practice — Feeling more confident in your knowledge of digital accessibility rules and best practices, you use a tool to measure the color contrast ratio between the text and the background. Then based on the output of the tool, you modify the hex code to meet the color contrast ratio guidelines and retest to confirm you have met the accessibility requirements for this issue. Stage 4: Understanding — You understand that the accessibility guidelines and tools are created with people in mind, and that code is secondary to all of that. One is the means, and the other is the end. In the color contrast example, you understand that people with low-vision or colorblindness need these color contrast changes in order to actually see the words on your web page. This is a bit of an oversimplification of the process. But I hope you get the gist — that there are different stages of digital accessibility knowledge and understanding. True beginners may not be to even stage one, but I am finding that group rarer and rarer these days. The word about digital accessibility seems to be out! Which is great; but that’s only the first hurdle. What I’m seeing now is that a lot of people stop at Stage 2: Knowledge or Stage 3: Practice — where you are aware of the digital accessibility guidelines, have some testing tools in your back pocket, and know how to fix some of the issues reported, but haven’t quite connected the dots to the humans they impact. From the standpoint of getting daily stuff done, stages two and three are okay stopping points. But what happens when the things you need to do are too complex for a quick fix, or you have no buy-in from your peers or management? I feel that once we get to Stage 4: Understanding, and really get why these kinds of changes are needed, people will be more motivated to make those changes regardless of the challenges involved. When you arrive at stage four, you have gone beyond knowing the basic rules, testing, and coding. You recognize that digital accessibility is not just a “nice to have” but a “must have” and it becomes about quality of life for real people. This is digital inclusion. This is something you can’t unsee, you can’t unlearn, and you can’t ignore. Making digital accessibility a priority — not a requirement In my role as an accessibility trainer, I like to kick-off each session with the question: “What are you hoping to learn today about digital accessibility?” I ask this question to establish a rapport with the audience and to understand where everyone is in their accessibility journey, but I am also evaluating the level of company and individual buy-in too. There is nothing worse than showing up to teach a group that does not care to be taught. If I hear the words “I am only here because I have to be” — I know it will be an uphill battle to get them anywhere close to Stage 4: Understanding, so I mentally regroup and aim for another stage. In my experience, when companies and their leaders say “Digital accessibility is a requirement,” nine times out of ten there is a motivating factor behind this sweeping declaration (for example, impending litigation, or at least the fear of it). When changes are framed as mandatory and packaged as directives from on high with little additional context, people can be resistant and will find excuses to fight or challenge the declaration, and any change can become an uphill battle. Calling something “mandatory” only speaks to Stage 1: Awareness. By swapping out one word from the original declaration and saying “Digital accessibility is a priority,” companies and their leaders have reframed the conversation with their employees. When changes are framed as “working towards a solution” and discussed openly and collaboratively, people feel like they are part of the process and are more open to embracing change. In the long run, embracing change becomes part of a company’s culture and leads to innovation (and, yes, inclusion) on all levels. Calling something a priority speaks to Stage 4: Understanding. Some of the excuses I often hear from clients for not prioritizing accessibility is that it is too difficult, too costly, and/or too time consuming — but is that really the case? In the same accessibility training, I lead an exercise where we look at a website with an accessibility testing tool and review any issues that came up. With the group’s help we plot out the “impact to user” versus the “remediation effort” on the part of the team. From group to group, while the plots are slightly different, one commonality is that close to 80% of the errors plotted fall into the quadrant of “simple to fix” for the team, but they also fall under “high impact” to the user. Based on this empirical data, I won’t buy the argument from clients who say that accessibility is too difficult and costly and time consuming anymore. It comes down to whether it’s a priority — for each individual and for the company as a whole. What will your coding legacy be? The infinite monkey theorem states that a monkey hitting keys at random on a typewriter for an infinite amount of time will eventually type any given text, such as the complete works of William Shakespeare. So by that same logic, a programmer hitting keys at random on a computer for an infinite amount of time will almost surely produce a website that is accessible. But where is the thought process? Where is the human element? While all the things we’ve already talked about — awareness, education, and prioritization of accessibility are important steps in making the digital world more inclusive to all — without intent, we are just going to keep randomly tapping away at our computers, repeating the same mistakes over and over again. The intent behind the code has to be part of the process, otherwise accessibility is just another task that has no meaning. Maybe I’m naive, but I’d like to think we’ve come to a point in our society where we want our work lives to have meaning. And that we don’t want to just hear about the positive change that is happening, but want to be part of the change. Digital accessibility is a place where this can happen! Not only does understanding and writing purpose-driven code help people with disabilities in the short-run, I believe strongly that is key to solving the overarching diversity issue in tech in the long-run. Developers who reach Stage 4: Understanding, and who prioritize accessible code because they understand it’s fundamentally about people, will also be the ones who help create and cultivate an inclusive environment where people from more diverse backgrounds are also prioritized and accepted in the tech world. Because when you strip away all the styles, all the mark-up, all the cool features from a website or app — what’s left? People. And honestly, the more I learn about digital accessibility, the more I realize it’s not about the code at all. Digital accessibility is rooted in the user; and, while I (and countless others) can certainly teach you how to write accessible code, and build you tools, patterns, and libraries to use, I realize we can’t teach you to care. That is a choice you have to make yourself. So think for a moment — what are you leaving the next generation of developers with all that inaccessible code you haven’t given much thought to? Is it the coding legacy you really want to leave? I challenge you to do better for my daughter, her peers, and for the countless others who are not fully represented in the tech community today. Full Article
ge Request with Intent: Caching Strategies in the Age of PWAs By feedproxy.google.com Published On :: 2019-11-21T14:30:06+00:00 Once upon a time, we relied on browsers to handle caching for us; as developers in those days, we had very little control. But then came Progressive Web Apps (PWAs), Service Workers, and the Cache API—and suddenly we have expansive power over what gets put in the cache and how it gets put there. We can now cache everything we want to… and therein lies a potential problem. Media files—especially images—make up the bulk of average page weight these days, and it’s getting worse. In order to improve performance, it’s tempting to cache as much of this content as possible, but should we? In most cases, no. Even with all this newfangled technology at our fingertips, great performance still hinges on a simple rule: request only what you need and make each request as small as possible. To provide the best possible experience for our users without abusing their network connection or their hard drive, it’s time to put a spin on some classic best practices, experiment with media caching strategies, and play around with a few Cache API tricks that Service Workers have hidden up their sleeves. Best intentions All those lessons we learned optimizing web pages for dial-up became super-useful again when mobile took off, and they continue to be applicable in the work we do for a global audience today. Unreliable or high latency network connections are still the norm in many parts of the world, reminding us that it’s never safe to assume a technical baseline lifts evenly or in sync with its corresponding cutting edge. And that’s the thing about performance best practices: history has borne out that approaches that are good for performance now will continue being good for performance in the future. Before the advent of Service Workers, we could provide some instructions to browsers with respect to how long they should cache a particular resource, but that was about it. Documents and assets downloaded to a user’s machine would be dropped into a directory on their hard drive. When the browser assembled a request for a particular document or asset, it would peek in the cache first to see if it already had what it needed to possibly avoid hitting the network. We have considerably more control over network requests and the cache these days, but that doesn’t excuse us from being thoughtful about the resources on our web pages. Request only what you need As I mentioned, the web today is lousy with media. Images and videos have become a dominant means of communication. They may convert well when it comes to sales and marketing, but they are hardly performant when it comes to download and rendering speed. With this in mind, each and every image (and video, etc.) should have to fight for its place on the page. A few years back, a recipe of mine was included in a newspaper story on cooking with spirits (alcohol, not ghosts). I don’t subscribe to the print version of that paper, so when the article came out I went to the site to take a look at how it turned out. During a recent redesign, the site had decided to load all articles into a nearly full-screen modal viewbox layered on top of their homepage. This meant requesting the article required requests for all of the assets associated with the article page plus all the contents and assets for the homepage. Oh, and the homepage had video ads—plural. And, yes, they auto-played. I popped open DevTools and discovered the page had blown past 15 MB in page weight. Tim Kadlec had recently launched What Does My Site Cost?, so I decided to check out the damage. Turns out that the actual cost to view that page for the average US-based user was more than the cost of the print version of that day’s newspaper. That’s just messed up. Sure, I could blame the folks who built the site for doing their readers such a disservice, but the reality is that none of us go to work with the goal of worsening our users’ experiences. This could happen to any of us. We could spend days scrutinizing the performance of a page only to have some committee decide to set that carefully crafted page atop a Times Square of auto-playing video ads. Imagine how much worse things would be if we were stacking two abysmally-performing pages on top of each other! Media can be great for drawing attention when competition is high (e.g., on the homepage of a newspaper), but when you want readers to focus on a single task (e.g., reading the actual article), its value can drop from important to “nice to have.” Yes, studies have shown that images excel at drawing eyeballs, but once a visitor is on the article page, no one cares; we’re just making it take longer to download and more expensive to access. The situation only gets worse as we shove more media into the page. We must do everything in our power to reduce the weight of our pages, so avoid requests for things that don’t add value. For starters, if you’re writing an article about a data breach, resist the urge to include that ridiculous stock photo of some random dude in a hoodie typing on a computer in a very dark room. Request the smallest file you can Now that we’ve taken stock of what we do need to include, we must ask ourselves a critical question: How can we deliver it in the fastest way possible? This can be as simple as choosing the most appropriate image format for the content presented (and optimizing the heck out of it) or as complex as recreating assets entirely (for example, if switching from raster to vector imagery would be more efficient). Offer alternate formats When it comes to image formats, we don’t have to choose between performance and reach anymore. We can provide multiple options and let the browser decide which one to use, based on what it can handle. You can accomplish this by offering multiple sources within a picture or video element. Start by creating multiple formats of the media asset. For example, with WebP and JPG, it’s likely that the WebP will have a smaller file size than the JPG (but check to make sure). With those alternate sources, you can drop them into a picture like this: <picture> <source srcset="my.webp" type="image/webp"> <img src="my.jpg" alt="Descriptive text about the picture."> </picture> Browsers that recognize the picture element will check the source element before making a decision about which image to request. If the browser supports the MIME type “image/webp,” it will kick off a request for the WebP format image. If not (or if the browser doesn’t recognize picture), it will request the JPG. The nice thing about this approach is that you’re serving the smallest image possible to the user without having to resort to any sort of JavaScript hackery. You can take the same approach with video files: <video controls> <source src="my.webm" type="video/webm"> <source src="my.mp4" type="video/mp4"> <p>Your browser doesn’t support native video playback, but you can <a href="my.mp4" download>download</a> this video instead.</p> </video> Browsers that support WebM will request the first source, whereas browsers that don’t—but do understand MP4 videos—will request the second one. Browsers that don’t support the video element will fall back to the paragraph about downloading the file. The order of your source elements matters. Browsers will choose the first usable source, so if you specify an optimized alternative format after a more widely compatible one, the alternative format may never get picked up. Depending on your situation, you might consider bypassing this markup-based approach and handle things on the server instead. For example, if a JPG is being requested and the browser supports WebP (which is indicated in the Accept header), there’s nothing stopping you from replying with a WebP version of the resource. In fact, some CDN services—Cloudinary, for instance—come with this sort of functionality right out of the box. Offer different sizes Formats aside, you may want to deliver alternate image sizes optimized for the current size of the browser’s viewport. After all, there’s no point loading an image that’s 3–4 times larger than the screen rendering it; that’s just wasting bandwidth. This is where responsive images come in. Here’s an example: <img src="medium.jpg" srcset="small.jpg 256w, medium.jpg 512w, large.jpg 1024w" sizes="(min-width: 30em) 30em, 100vw" alt="Descriptive text about the picture."> There’s a lot going on in this super-charged img element, so I’ll break it down: This img offers three size options for a given JPG: 256 px wide (small.jpg), 512 px wide (medium.jpg), and 1024 px wide (large.jpg). These are provided in the srcset attribute with corresponding width descriptors.The src defines a default image source, which acts as a fallback for browsers that don’t support srcset. Your choice for the default image will likely depend on the context and general usage patterns. Often I’d recommend the smallest image be the default, but if the majority of your traffic is on older desktop browsers, you might want to go with the medium-sized image.The sizes attribute is a presentational hint that informs the browser how the image will be rendered in different scenarios (its extrinsic size) once CSS has been applied. This particular example says that the image will be the full width of the viewport (100vw) until the viewport reaches 30 em in width (min-width: 30em), at which point the image will be 30 em wide. You can make the sizes value as complicated or as simple as you want; omitting it causes browsers to use the default value of 100vw. You can even combine this approach with alternate formats and crops within a single picture. ???? All of this is to say that you have a number of tools at your disposal for delivering fast-loading media, so use them! Defer requests (when possible) Years ago, Internet Explorer 11 introduced a new attribute that enabled developers to de-prioritize specific img elements to speed up page rendering: lazyload. That attribute never went anywhere, standards-wise, but it was a solid attempt to defer image loading until images are in view (or close to it) without having to involve JavaScript. There have been countless JavaScript-based implementations of lazy loading images since then, but recently Google also took a stab at a more declarative approach, using a different attribute: loading. The loading attribute supports three values (“auto,” “lazy,” and “eager”) to define how a resource should be brought in. For our purposes, the “lazy” value is the most interesting because it defers loading the resource until it reaches a calculated distance from the viewport. Adding that into the mix… <img src="medium.jpg" srcset="small.jpg 256w, medium.jpg 512w, large.jpg 1024w" sizes="(min-width: 30em) 30em, 100vw" loading="lazy" alt="Descriptive text about the picture."> This attribute offers a bit of a performance boost in Chromium-based browsers. Hopefully it will become a standard and get picked up by other browsers in the future, but in the meantime there’s no harm in including it because browsers that don’t understand the attribute will simply ignore it. This approach complements a media prioritization strategy really well, but before I get to that, I want to take a closer look at Service Workers. Manipulate requests in a Service Worker Service Workers are a special type of Web Worker with the ability to intercept, modify, and respond to all network requests via the Fetch API. They also have access to the Cache API, as well as other asynchronous client-side data stores like IndexedDB for resource storage. When a Service Worker is installed, you can hook into that event and prime the cache with resources you want to use later. Many folks use this opportunity to squirrel away copies of global assets, including styles, scripts, logos, and the like, but you can also use it to cache images for use when network requests fail. Keep a fallback image in your back pocket Assuming you want to use a fallback in more than one networking recipe, you can set up a named function that will respond with that resource: function respondWithFallbackImage() { return caches.match( "/i/fallbacks/offline.svg" ); } Then, within a fetch event handler, you can use that function to provide that fallback image when requests for images fail at the network: self.addEventListener( "fetch", event => { const request = event.request; if ( request.headers.get("Accept").includes("image") ) { event.respondWith( return fetch( request, { mode: 'no-cors' } ) .then( response => { return response; }) .catch( respondWithFallbackImage ); ); } }); When the network is available, users get the expected behavior: Social media avatars are rendered as expected when the network is available. But when the network is interrupted, images will be swapped automatically for a fallback, and the user experience is still acceptable: A generic fallback avatar is rendered when the network is unavailable. On the surface, this approach may not seem all that helpful in terms of performance since you’ve essentially added an additional image download into the mix. With this system in place, however, some pretty amazing opportunities open up to you. Respect a user’s choice to save data Some users reduce their data consumption by entering a “lite” mode or turning on a “data saver” feature. When this happens, browsers will often send a Save-Data header with their network requests. Within your Service Worker, you can look for this header and adjust your responses accordingly. First, you look for the header: let save_data = false; if ( 'connection' in navigator ) { save_data = navigator.connection.saveData; } Then, within your fetch handler for images, you might choose to preemptively respond with the fallback image instead of going to the network at all: self.addEventListener( "fetch", event => { const request = event.request; if ( request.headers.get("Accept").includes("image") ) { event.respondWith( if ( save_data ) { return respondWithFallbackImage(); } // code you saw previously ); } }); You could even take this a step further and tune respondWithFallbackImage() to provide alternate images based on what the original request was for. To do that you’d define several fallbacks globally in the Service Worker: const fallback_avatar = "/i/fallbacks/avatar.svg", fallback_image = "/i/fallbacks/image.svg"; Both of those files should then be cached during the Service Worker install event: return cache.addAll( [ fallback_avatar, fallback_image ]); Finally, within respondWithFallbackImage() you could serve up the appropriate image based on the URL being fetched. In my site, the avatars are pulled from Webmention.io, so I test for that. function respondWithFallbackImage( url ) { const image = avatars.test( /webmention.io/ ) ? fallback_avatar : fallback_image; return caches.match( image ); } With that change, I’ll need to update the fetch handler to pass in request.url as an argument to respondWithFallbackImage(). Once that’s done, when the network gets interrupted I end up seeing something like this: A webmention that contains both an avatar and an embedded image will render with two different fallbacks when the Save-Data header is present. Next, we need to establish some general guidelines for handling media assets—based on the situation, of course. The caching strategy: prioritize certain media In my experience, media—especially images—on the web tend to fall into three categories of necessity. At one end of the spectrum are elements that don’t add meaningful value. At the other end of the spectrum are critical assets that do add value, such as charts and graphs that are essential to understanding the surrounding content. Somewhere in the middle are what I would call “nice-to-have” media. They do add value to the core experience of a page but are not critical to understanding the content. If you consider your media with this division in mind, you can establish some general guidelines for handling each, based on the situation. In other words, a caching strategy. Media loading strategy, broken down by how critical an asset is to understanding an interface Media category Fast connection Save-Data Slow connection No network Critical Load media Replace with placeholder Nice-to-have Load media Replace with placeholder Non-critical Remove from content entirely When it comes to disambiguating the critical from the nice-to-have, it’s helpful to have those resources organized into separate directories (or similar). That way we can add some logic into the Service Worker that can help it decide which is which. For example, on my own personal site, critical images are either self-hosted or come from the website for my book. Knowing that, I can write regular expressions that match those domains: const high_priority = [ /aaron-gustafson.com/, /adaptivewebdesign.info/ ]; With that high_priority variable defined, I can create a function that will let me know if a given image request (for example) is a high priority request or not: function isHighPriority( url ) { // how many high priority links are we dealing with? let i = high_priority.length; // loop through each while ( i-- ) { // does the request URL match this regular expression? if ( high_priority[i].test( url ) ) { // yes, it’s a high priority request return true; } } // no matches, not high priority return false; } Adding support for prioritizing media requests only requires adding a new conditional into the fetch event handler, like we did with Save-Data. Your specific recipe for network and cache handling will likely differ, but here was how I chose to mix in this logic within image requests: // Check the cache first // Return the cached image if we have one // If the image is not in the cache, continue // Is this image high priority? if ( isHighPriority( url ) ) { // Fetch the image // If the fetch succeeds, save a copy in the cache // If not, respond with an "offline" placeholder // Not high priority } else { // Should I save data? if ( save_data ) { // Respond with a "saving data" placeholder // Not saving data } else { // Fetch the image // If the fetch succeeds, save a copy in the cache // If not, respond with an "offline" placeholder } } We can apply this prioritized approach to many kinds of assets. We could even use it to control which pages are served cache-first vs. network-first. Keep the cache tidy The ability to control which resources are cached to disk is a huge opportunity, but it also carries with it an equally huge responsibility not to abuse it. Every caching strategy is likely to differ, at least a little bit. If we’re publishing a book online, for instance, it might make sense to cache all of the chapters, images, etc. for offline viewing. There’s a fixed amount of content and—assuming there aren’t a ton of heavy images and videos—users will benefit from not having to download each chapter separately. On a news site, however, caching every article and photo will quickly fill up our users’ hard drives. If a site offers an indeterminate number of pages and assets, it’s critical to have a caching strategy that puts hard limits on how many resources we’re caching to disk. One way to do this is to create several different blocks associated with caching different forms of content. The more ephemeral content caches can have strict limits around how many items can be stored. Sure, we’ll still be bound to the storage limits of the device, but do we really want our website to take up 2 GB of someone’s hard drive? Here’s an example, again from my own site: const sw_caches = { static: { name: `${version}static` }, images: { name: `${version}images`, limit: 75 }, pages: { name: `${version}pages`, limit: 5 }, other: { name: `${version}other`, limit: 50 } } Here I’ve defined several caches, each with a name used for addressing it in the Cache API and a version prefix. The version is defined elsewhere in the Service Worker, and allows me to purge all caches at once if necessary. With the exception of the static cache, which is used for static assets, every cache has a limit to the number of items that may be stored. I only cache the most recent 5 pages someone has visited, for instance. Images are limited to the most recent 75, and so on. This is an approach that Jeremy Keith outlines in his fantastic book Going Offline (which you should really read if you haven’t already—here’s a sample). With these cache definitions in place, I can clean up my caches periodically and prune the oldest items. Here’s Jeremy’s recommended code for this approach: function trimCache(cacheName, maxItems) { // Open the cache caches.open(cacheName) .then( cache => { // Get the keys and count them cache.keys() .then(keys => { // Do we have more than we should? if (keys.length > maxItems) { // Delete the oldest item and run trim again cache.delete(keys[0]) .then( () => { trimCache(cacheName, maxItems) }); } }); }); } We can trigger this code to run whenever a new page loads. By running it in the Service Worker, it runs in a separate thread and won’t drag down the site’s responsiveness. We trigger it by posting a message (using postMessage()) to the Service Worker from the main JavaScript thread: // First check to see if you have an active service worker if ( navigator.serviceWorker.controller ) { // Then add an event listener window.addEventListener( "load", function(){ // Tell the service worker to clean up navigator.serviceWorker.controller.postMessage( "clean up" ); }); } The final step in wiring it all up is setting up the Service Worker to receive the message: addEventListener("message", messageEvent => { if (messageEvent.data == "clean up") { // loop though the caches for ( let key in sw_caches ) { // if the cache has a limit if ( sw_caches[key].limit !== undefined ) { // trim it to that limit trimCache( sw_caches[key].name, sw_caches[key].limit ); } } } }); Here, the Service Worker listens for inbound messages and responds to the “clean up” request by running trimCache() on each of the cache buckets with a defined limit. This approach is by no means elegant, but it works. It would be far better to make decisions about purging cached responses based on how frequently each item is accessed and/or how much room it takes up on disk. (Removing cached items based purely on when they were cached isn’t nearly as useful.) Sadly, we don’t have that level of detail when it comes to inspecting the caches…yet. I’m actually working to address this limitation in the Cache API right now. Your users always come first The technologies underlying Progressive Web Apps are continuing to mature, but even if you aren’t interested in turning your site into a PWA, there’s so much you can do today to improve your users’ experiences when it comes to media. And, as with every other form of inclusive design, it starts with centering on your users who are most at risk of having an awful experience. Draw distinctions between critical, nice-to-have, and superfluous media. Remove the cruft, then optimize the bejeezus out of each remaining asset. Serve your media in multiple formats and sizes, prioritizing the smallest versions first to make the most of high latency and slow connections. If your users say they want to save data, respect that and have a fallback plan in place. Cache wisely and with the utmost respect for your users’ disk space. And, finally, audit your caching strategies regularly—especially when it comes to large media files.Follow these guidelines, and every one of your users—from folks rocking a JioPhone on a rural mobile network in India to people on a high-end gaming laptop wired to a 10 Gbps fiber line in Silicon Valley—will thank you. Full Article
ge Bhaker gets electronic target installed at home By Published On :: Bhaker gets electronic target installed at home Full Article
ge Relief for daily wage earners in Dimapur By Published On :: Relief for daily wage earners in Dimapur Full Article
ge Ensure Visakhapatnam like mishaps dont take place in State, govt urged By Published On :: Ensure Visakhapatnam like mishaps dont take place in State, govt urged Full Article
ge Assam students in Andhra, Telengana urge govt to bring them back home By Published On :: Assam students in Andhra, Telengana urge govt to bring them back home Full Article
ge Cachar admin on edge after detection of more COVID-19 cases By Published On :: Cachar admin on edge after detection of more COVID-19 cases Full Article
ge Concern over Akhil Gogois prolonged detention By Published On :: Concern over Akhil Gogois prolonged detention Full Article
ge Raman spectroscopy in the undergraduate curriculum / Matthew D. Sonntag, editor, Department of Chemistry and Biochemistry, Albright College, Reading, Pennsylvania ; sponsored by the ACS Division of Chemical Education. By darius.uleth.ca Published On :: Washington, DC : American Chemical Society, [2018] Full Article
ge Contrast agents III [electronic resource] : radiopharmaceuticals from diagnostics to therapeutics / volume editor, Werner Krause ; with contributions by R. Alberto [and others] By darius.uleth.ca Published On :: Berlin ; New York : Springer-Verlag, [2005] Full Article
ge Most H-1B employers use programme to pay migrant workers well below market wages: Report By timesofindia.indiatimes.com Published On :: Wed, 06 May 2020 08:06:30 IST A majority of H-1B employers, including major American technology firms like Facebook, Google, Apple and Microsoft, use the programme to pay migrant workers well below market wages, a new report has claimed. 60 per cent of H-1B positions certified by the US Department of Labor are assigned wage levels well below the local median wage for the occupation, the report found. Full Article
ge Amid lockdown, fashion firms strive to keep customers engaged By economictimes.indiatimes.com Published On :: 2020-04-22T17:10:18+05:30 Online retailers such as Myntra and Tjori have their consumer engagement teams working on to engage their customers till the time the lockdown eases. Others such as fashion brand Anita Dongre are brainstorming changes in consumer behaviour and how to keep them engaged online till the time stores become fully operational. Full Article
ge Surat may lose cutting edge in diamond trade By economictimes.indiatimes.com Published On :: 2020-05-07T01:07:38+05:30 Diamond trade has come to a halt because of the lockdown. Many workers have also left. Full Article
ge Ocular drug delivery: advances, challenges and applications / Richard T. Addo, editor By library.mit.edu Published On :: Sun, 29 Jan 2017 06:57:56 EST Online Resource Full Article
ge SPIONs as nano-theranostics agents / Atefeh Zarepour, Ali Zarrabi, Arezoo Khosravi By library.mit.edu Published On :: Sun, 19 Feb 2017 07:05:30 EST Online Resource Full Article
ge Comprehensive Accounts of Pharmaceutical Research and Development: From Discovery to Late-Stage Process Development. / Ahmed F. Abdel-Magid, editor, Jaan A. Pesti, editor, Rajappa Vaidyanathan, editor ; sponsored by the ACS Division of Organic Chemistry By library.mit.edu Published On :: Sun, 26 Feb 2017 06:27:27 EST Online Resource Full Article
ge Comprehensive accounts of pharmaceutical research and development: from discovery to late-stage process development / Ahmed F. Abdel-Magid, editor, Jaan A. Pesti, editor, Rajappa Vaidyanathan, editor ; sponsored by the ACS Division of Organic Chemistry By library.mit.edu Published On :: Sun, 26 Feb 2017 06:27:27 EST Online Resource Full Article
ge Drugs that changed the world: how therapeutic agents shaped our lives / Irwin W. Sherman By library.mit.edu Published On :: Sun, 5 Mar 2017 06:25:36 EST Hayden Library - RM300.S53 2017 Full Article
ge The SAGE handbook of drug & alcohol studies / edited by Torsten Kolind [and 4 others] By library.mit.edu Published On :: Sun, 2 Apr 2017 06:29:38 EDT Online Resource Full Article
ge Silica-coated magnetic nanoparticles: an insight into targeted drug delivery and toxicology / Mariela A. Agotegaray, Verónica L. Lassalle By library.mit.edu Published On :: Sun, 9 Apr 2017 06:29:16 EDT Online Resource Full Article
ge Sigma receptors: their role in disease and as therapeutic targets / Sylvia B. Smith, Tsung-Ping Su, editors By library.mit.edu Published On :: Sun, 16 Apr 2017 06:30:07 EDT Online Resource Full Article
ge Medical management of psychotropic side effects / Aniyizhai Annamalai By library.mit.edu Published On :: Sun, 23 Apr 2017 06:25:20 EDT Online Resource Full Article
ge Drug and gene delivery to the central nervous system for neuroprotection: nanotechnological advances / Hari S.Sharma, Dafin F.Muresanu, Aruna Sharma, editors By library.mit.edu Published On :: Sun, 23 Jul 2017 06:33:28 EDT Online Resource Full Article
ge Peptide-based drug discovery: challenges and new therapeutics / ediror: Ved Srivastava By library.mit.edu Published On :: Sun, 23 Jul 2017 06:33:28 EDT Online Resource Full Article
ge Gendering drugs: feminist studies of pharmaceuticals / Ericka Johnson, editor By library.mit.edu Published On :: Sun, 27 Aug 2017 06:34:53 EDT Dewey Library - RM301.3.S48 G46 2017 Full Article
ge Enabling precision medicine: the role of genetics in clinical drug development: proceedings of a workshop / Morgan L. Boname [and four others], rapporteurs ; Forum on Drug Discovery, Development, and Translation ; Roundtable on Genomics and Precision Heal By library.mit.edu Published On :: Sun, 5 Nov 2017 06:36:29 EST Online Resource Full Article
ge Biophysical techniques in drug discovery / edited by Angeles Canales By library.mit.edu Published On :: Sun, 28 Jan 2018 06:39:05 EST Online Resource Full Article
ge Concepts in pharmacogenomics: fundamentals and therapeutic applications in personalized medicine / [edited by] Martin M. Zdanowicz By library.mit.edu Published On :: Sun, 18 Mar 2018 06:45:07 EDT Online Resource Full Article
ge Amorphous Drugs: Benefits and Challenges / by Marzena Rams-Baron, Renata Jachowicz, Elena Boldyreva, Deliang Zhou, Witold Jamroz, Marian Paluch By library.mit.edu Published On :: Sun, 1 Apr 2018 06:34:28 EDT Online Resource Full Article
ge Geology and medicine: historical connections / edited by C.J. Duffin, C.Gardner-Thorpe, R.T.J. Moody By library.mit.edu Published On :: Sun, 1 Apr 2018 06:34:28 EDT Hayden Library - RS166.G354 2017 Full Article
ge The drug development paradigm in oncology: proceedings of a workshop / Amanda Wagner Gee, Erin Balogh, Margie Patlak, and Sharyl J. Nass, rapporteurs ; National Cancer Policy Forum, Board on Health Care Services, Health and Medicine Division, the National By library.mit.edu Published On :: Sun, 13 May 2018 06:33:58 EDT Online Resource Full Article
ge Winter's basic clinical pharmacokinetics / Paul Beringer, PharmD By library.mit.edu Published On :: Sun, 10 Jun 2018 06:37:51 EDT Hayden Library - RM301.5.W56 2018 Full Article
ge Basic concepts in pharmacology: what you need to know for each drug class / Janet L. Stringer By library.mit.edu Published On :: Sun, 10 Jun 2018 06:37:51 EDT Hayden Library - RM301.14.S77 2017 Full Article
ge Clinical psychopharmacology for neurologists: a practical guide / George T. Grossberg, Laurence J. Kinsella, editors By library.mit.edu Published On :: Sun, 24 Jun 2018 06:32:27 EDT Online Resource Full Article
ge Anticoagulation therapy / Joe F. Lau, Geoffrey D. Barnes, Michael B. Streiff editors By library.mit.edu Published On :: Sun, 24 Jun 2018 06:32:27 EDT Online Resource Full Article