Can we show an alternate image in print.css?

Yes, I got so exciting that bit me too.

I had thought “Ah, the href puts it into cache before it’s used, so it works first time!”

But further testing proved that wrong :frowning2:

I’ve tried link rel prefetch and prerender, but no.

I tried var img = new Image(); , but no.

1 Like

Yes, its a bit of pain to say the least as it almost works.

The base64 method was the most successful for me so far but that one fails in Firefox in the same way that Chrome does. I expect there’s a hacky solution in there somewhere :slight_smile:

Clear the cache? Ouch, forgot about that one.

I have styles.css and print.css. The print.css is to output that particular page’s content: text. Each page will have its own print.css. The styles.css is common for all the pages.

I removed the @media from the css file. Good catch.

Thanks, Paul!

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.