Skip to main content

Copy of some Draft Web Development Guidelines

Take advantage of native features and functionality

Ensuring that your code is free of redundancy by using pre-existing functionality provided by the web browser is important as it will help you to reduce the amount of time wasted, re-creating the same components, this offers obvious sustainability benefits in terms of time in front of the screen.

Criteria: Native over custom

Machine-testable

Use native functions, APIs, and features over writing your own.

Resources

Impact: Medium, Effort: Low

GRI Impact of Take advantage of native features and functionality
GRI Impact
materials Medium
energy Medium
water Medium
emissions Medium
Benefits of this guideline
  • Environment: Avoiding repetition of pre-existing features improves efficiency, which ultimately will lead to less redundancy, less development time, and thereby emissions saving for the construction of the product or service.
  • Performance: Native features will have been well optimized, it's unlikely a custom component will match this, therefore a native function will not only load quicker but will use fewer resources.
  • Economic: Existing features don't require additional development time, so is a time saver.

Example
  • code

    I'm a dialog.

  • content HTML [dialog] (https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dialog) API example.

Tags: