Comments (5)
I've found lazy loading to be fraught with peril. It can be implemented well and give a performance boost, but it can also be a performance drag if the site is already very javascript heavy. There are situations where it can be tricky to get the desired effect. If we're going to recommend lazy loading, I'd like to see a more in depth coverage of the topic and methods to achieve this.
from engineering-best-practices.
Is a PNG fallback really necessary anymore? SVG is pretty widely supported outside of IE8.
from engineering-best-practices.
Zack, great work getting this conversation started.
IE8 hits EOL from Microsoft on Jan. 12, 2016. However, I’m working on a new reskin of a site that must support IE8, and I’ll be working on a new site whose audience has more IE usage than Chrome, and more IE8 usage than any other version. I hope we draw a hard line on this soon. In the meantime, as long as it is our policy to support this relic, we could at least mention any tools or markup patterns that will decrease development time.
Use SVG images whenever possible. They are resolution independent, easily styleable with CSS, and often smaller and clearer than other image formats.
When using SVGs as an icon system, combine them into a single sprite sheet that allows individual images be displayed with an ID.
When using SVGs and supporting Internet Explorer 8, provide a fallback, such as a PNG image.
I’ve avoided mentioning icon fonts, since they were a hack resolved by SVGs.
from engineering-best-practices.
Splitting this into #102, #103, and #104 to keep the discussions more focused.
from engineering-best-practices.
I don't want to recommend Jetpack Photon since I think we should remain agnostic there.
Would love to get @tddewey's feedback on all of this.
@zrothauser this is a great start!
from engineering-best-practices.
Related Issues (20)
- Outdated Information in PHP HOT 1
- Confusion in the links on the Contributing Guidelines HOT 2
- Readme updates
- Codex References in PHP Section HOT 2
- Skip Links Example 404's
- Rename Master-Slave in Systems.md
- [JavaScript] Best practices for choosing third-party libraries and keep bundle size small.
- GitHub Security tab overtaken by our security.md file HOT 3
- Main nav on Best Practices is not displaying correctly. HOT 1
- Add Web Vitals Best Practices HOT 9
- [JavaScript] Avoid using aliases (such as webpack alias) in favor of relative imports HOT 2
- Add paragraph on the performance of meta_queries using EXISTS/NOT_EXISTS HOT 2
- Visual Bugs on Submenus HOT 1
- Update reference to old Project/Theme/Plugin Scaffold with the new WP Scaffold
- Code review guidelines and best practices.
- Misspelling on Performace best practices
- Add recommended/endorsed plugins for addressing site security recommendations
- Fix typos and update non-evergreen content
- Fix PHP 7 recommendation in migration section
- Typos on Markup page
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 engineering-best-practices.