Decisions by Chris DeLuca

Architectural decision records contributed to by Chris DeLuca

15 decisions
  1. accepted
    Enforce SDC Schema Validation

    Without enforced schema validation, Single Directory Components can silently accept incorrect or missing props, leading to runtime errors and inconsistent rendering.

    front-end sdc
  2. accepted
    Load JavaScript libraries conditionally

    Loading all JavaScript globally increases initial page weight and slows down pages that don't need it.

    front-end javascript
  3. accepted
    Automate checking for uncommitted files

    Uncommitted files resulting from builds can cause issues during deployments.

    git ci devops
  4. accepted
    Respect prefers-reduced-motion for all animations and transitions

    Users with vestibular disorders rely on the prefers-reduced-motion media query to disable or reduce motion that can cause discomfort.

    front-end css javascript accessibility
  5. accepted
    Use the feature branch git workflow

    Establishing a standard git workflow improves velocity and consistency of delivery.

    git
  6. accepted
    Use Stylelint

    Using Stylelint helps prevent errors and keeps code in a consistent format.

    front-end css
  7. accepted
    Use SVG view box instead of width and height

    Using viewBox improves maintainability.

    front-end performance
  8. accepted
    Enforce Twig coding standards with automatic linting

    Linters like twigcs keep code more consistent and readable

    twig drupal front-end
  9. accepted
    Avoid using jQuery

    jQuery is an unnecessary dependency for modern browsers.

    front-end javascript
  10. accepted
    Use relative units in CSS for resizable content

    Using relative units improves accessibility by ensuring that text and content does not overlap when zooming web pages or changing the base font size.

    front-end css
  11. accepted
    Use SVGs for icons

    Using SVGs for icons has the best display, performance, and accessibility

    front-end accessibility performance
  12. accepted
    Load JavaScript as external resource with defer attribute

    Loading JavaScript as deferred has the best default performance

    javascript front-end performance
  13. deprecated
    Load JavaScript as external resource with async and defer attributes

    Loading JavaScript as async & deferred has the best default performance

    javascript front-end performance
  14. accepted
    Use [ticket-id]--[short-description] in feature branch names

    Omitting key information in branch names can cause confusion over the purpose of a branch.

    git
  15. accepted
    Use JavaScript strict mode

    Opt in to settings that raise errors for problematic code.

    front-end javascript

Search Decisions