Skip to content

Outreachy '20: Optimize Performance and accessibility Project Planning #7883

@Tlazypanda

Description

@Tlazypanda

Hey everyone! This is a planning issue to map out all the tasks to be covered in the upcoming weeks and create a room for further discussions and improvements.

Note: see original proposal here: https://publiclab.org/notes/itm2017004/03-12-2020/outreachy-proposal-optimize-performance-and-accessibility-of-public-lab-content

Performance Analysis and Improvement:

Tasks:

New work added (not defined in the scope before)

Accessibility

See https://firefox-source-docs.mozilla.org/devtools-user/accessibility_inspector/index.html for firefox accessibility inspector, and WAVE assessment

Tasks

  • Add labels to forms wherever applicable.(break-me-up tag can be used to break it down into several components) (Flagged as missing form label)
  • Add aria-label if we don’t want the label to be visible but accessible.(break-me-up tag can be used to break it down into several components) (Flagged as missing form label for cases where we want hidden form labels)
  • Check and test if on zooming into text all the elements of the page are visible or not and apply changes accordingly.(break-me-up tag can be used to break it down into several components)
  • Add accessible names to button to prevent screen readers from announcing it as “button”.(break-me-up) (Flagged as empty button problem)
  • Add meaningful text into links to promote uniqueness and accessibility.(break-me-up) (Flagged as empty link problem)
  • Add alternative text for images to promote SEO and accessibility.(break-me-up) (wip: Add alternate text for lead images #8106 stuck and not sure how to work on this TBD after printability)

Worked on a route-to-route basis by testing against WAVE assessment (#8054 #8028 #7995 #7989 #7977 #7975 #7968 #7966 #7962 )
FTOs opened (#8094 #8093 #8092 #8055 #8032 #8030 #8029 #8007 #8006 #8005 #8001 #8000 )

Printability

Tasks:

Modified scope to avoid working with additional libraries:-

  • Using js script and DOM manipulations to create the print preview
  • Set topics section display as None in the stylesheet.
  • Add better contrast to the links printed by changing the colour of a tag in the stylesheet.
  • Images can be scaled down in the stylesheet for uniformity across the documents.
  • Add css to display tables in proper tabular format
  • Proper styling done with help of @ebarry
    //more points to be added here as and while developing if more improvements can be made

Documentation

Tasks:
#8057 https://hackmd.io/@itm2017004/BJuqtap6L

  • Creating a proper documentation guide covering all the points above ensuring that contributors abide by it to promote accessibility.
  • The guide will contain sections for adding aria-labels,form-labels,alt text and testing 200% zoom on pages.
    //more points to be added here as and while developing if more improvements can be made

Up for discussion

Tasks:

  • Running Lighthouse CI for pull request to ensure performance and accessibility in further code.More details can be found here. (Discussion issue here Lighthouse ci for performance and accessibility monitoring #8112 awaiting input)
  • Replace will-paginate gem with pagy which is much more memory efficient and can improve performance.
  • Serving assets over HTTP/2 instead of HTTP/1.1
  • Add descriptive text for links for better Search Engine Optimization.
  • Add rel="noopener" to links having target=’_blank’ to allow safety of cross-origin destinations.
  • Allow password copy-pasting since it is flagged as not a secure policy by Lighthouse.
  • Remove error logging into the console in the production environment.
  • The turbolinks gem is present in the gemfile but not used. So needs to be removed assuming we ran into some issue with it ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions