gatsby-starter-typescript | gatsby-starter-typescript
kandi X-RAY | gatsby-starter-typescript Summary
kandi X-RAY | gatsby-starter-typescript Summary
gatsby-starter-typescript
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gatsby-starter-typescript
gatsby-starter-typescript Key Features
gatsby-starter-typescript Examples and Code Snippets
Community Discussions
Trending Discussions on gatsby-starter-typescript
QUESTION
The resulting static html code from gatsby-image
is something like this:
ANSWER
Answered 2021-Jan-10 at 10:22You can't remove that behavior since it's inherent by default
gatsby-image
and it doesn't add any kind of customization to avoid it.
As it has been said by @Mike 'Pomxa' Mamermans it's strongly suggested to leave it. It's not a matter of "I just don't want to add support for disabled javascript", it's a matter of default fallback for old browsers or browsers that have the JavaScript disabled, and trying to change this behavior will thrive you in weird caveats since you will need to change the package functionality itself from node_modules
so your change won't be persistent.
If you want to add this behavior you'll need to add a PR to Gatsby's repository providing a solution for your use-case since what you are trying to achieve by removing the tag it's not intended behavior for
gatsby-image
.
It also doesn't make sense to remove functionality that potentially will make your site reach more people at default cost, in a meaningless amount of bytes that those lines add.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gatsby-starter-typescript
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page