Comments (9)
I've narrowed the issue down to safari not supporting lazy loading by default. If I turn it on inside experimental everything works.
Currently I'm looking to grab the shim that gatsby-plugin-image sets up inside SSR and copy paste it
from gatsby-plugin-no-javascript.
Hmmm no luck so far. It appears the problem image has its src and srcSet prepended with data.... but why does it work on chrome/Firefox and iOS IF lazy load is enabled.... confusing
Tomorrow I'll write a SSR plugin that creates a script which will copy all dataSrc and dataSrcSet to their non data counterparts and see if that works
from gatsby-plugin-no-javascript.
Hi @falconmick ,
I am experiencing the same problem.
No solution yet though. I'm interested to hear if you did manage to solve it.
from gatsby-plugin-no-javascript.
Not yet, I hoped that the ios15 update would enable lazy load but it didn't so still bugged
from gatsby-plugin-no-javascript.
Oh yeah I didn't update this issue thread... the issue is lazy load on ios15, if you unable lacy load under experimental features the problem is solved
from gatsby-plugin-no-javascript.
Oh yeah I didn't update this issue thread... the issue is lazy load on ios15, if you unable lacy load under experimental features the problem is solved
That's nice, to visit my website with my own iPhone. But how do I enable the experimental features on all clients that want to visit my website with iOS 15? I can't right?
And btw, I also notice it is occurring on Safari on the desktop (MacOS Big Sur).
from gatsby-plugin-no-javascript.
Here is how to enable
https://user-images.githubusercontent.com/713449/134927370-62a3b4ff-d933-4edc-8113-e234db0091bf.mov
from gatsby-plugin-no-javascript.
Thanks for your video and that you took the effort to do so.
But what I meant was: this only ensures that I myself get to see the website correctly.
All other visitors of my website with Safari will probably have that feature disabled. So they see broken/missing images.
I need the no-javascript option on my website for a very specific reason.
On one page I include a React webapplication and that page breaks because of DOM errors. I think Gatsby Javascript is messing with the DOM.
But if I switch of Javascript everywhere, Safari visitors don't get images.
So what worked for me is I have forked this repo and created an includePaths option.
On all pages the Javascript is left intact and the image loading works. Only on my special page the Javascript is stripped, so I am saved.
Good luck if you still need a solution for the visitors of your website and thanks for your response.
from gatsby-plugin-no-javascript.
from gatsby-plugin-no-javascript.
Related Issues (11)
- Need mutiple paths for excluding paths or files HOT 5
- Also remove page-data.json
- javascript is not stripped when building with path prefix HOT 5
- Remove JavaScript from specific pages HOT 1
- Gatsby v3 support (peer dep)
- Not working with latest Gatsby version 3.14.2
- Gatsby 5.2.0 introduces unstripped scripts HOT 1
- Delete unused Javascript Files in Public HOT 2
- noscript is still in HTML HOT 2
- page-data is still preloaded HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatsby-plugin-no-javascript.