Add checkDocumentIsReady helper function

Created on 13 August 2022, almost 2 years ago
Updated 30 May 2023, about 1 year ago

Problem/Motivation

Helpers functions are Javascript functions you can use anywhere in the theme.
It's a very good concept to be in vartheme_bs5.

Sometimes you have to check if the document is ready and loaded or not before doing work,
because of that, checkDocumentIsReady helper will make this check.

Proposed resolution

  • Add a new directory called helpers under src directory.
  • Add checkDocumentIsReady.js file contains checkDocumentIsReady helper function.
  • Add index.js file to export all helpers to allow call all helpers anywhere in the same way.

Remaining tasks

  • βœ… File an issue about this project
  • βœ… Addition/Change/Update/Fix to this project
  • βœ… Testing to ensure no regression
  • βž– Automated unit/functional testing coverage
  • βž– Developer Documentation support on feature change/addition
  • βž– User Guide Documentation support on feature change/addition
  • βž– Accessibility and Readability
  • βœ… Code review from 1 Varbase core team member
  • βœ… Full testing and approval
  • βœ… Credit contributors
  • βœ… Review with the product owner
  • βœ… Update Release Notes and Update Helper on new feature change/addition
  • βœ… Release varbase-10.0.0-alpha1 β†’ , vartheme_bs5-2.0.0-alpha1 β†’

Varbase update type

  • βœ… No Update
  • βž– Optional Update
  • βž– Forced Update
  • βž– Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

✨ Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡―πŸ‡΄Jordan Abdullah Yassin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024