adobe / adobe/helix-website

Do we need a block config?

Open
#30 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
45
Forks
59
Avg merge
3d 7h
Merged PRs (30d)
12

Description

In `scripts.js`, there's a selector block config with paths, script and style filenames. It allows loading a block for any element matching the selector, and avoids loading non-existent files (e.g. if a block only consists of a CSS file).

But it also adds complexity, reduces modularity (blocks need to be registered in `scripts.js`), which requires a trade-off.

Contributor guide

Open the contributing guide

Research direction

Start by reading scripts.js and trace the selector block config, including its paths and script and style filenames. Evaluate the stated benefits of loading only existing files against the added complexity and reduced modularity. Done means reaching and recording a decision on whether the block config should remain.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.