Skip to content

feat: expand quiz answers based on the SEO action plan#52

Merged
niteshseram merged 2 commits into
mainfrom
nitesh/SEO-update-quiz
May 6, 2026
Merged

feat: expand quiz answers based on the SEO action plan#52
niteshseram merged 2 commits into
mainfrom
nitesh/SEO-update-quiz

Conversation

@niteshseram
Copy link
Copy Markdown
Collaborator

@niteshseram niteshseram commented May 6, 2026

  • Expand 12 quiz answers identified in the SEO action plan with comparison tables, predict-the-output blocks, and current-year context (LLM streaming over SSE, ES module behavior, modern storage threat model, etc.).
  • Reframe each page so the simpler intent is answered above the fold and the deeper interview content sits below, addressing the "intent split" problem flagged in the action plan

@niteshseram niteshseram requested a review from yangshun May 6, 2026 04:45
Copy link
Copy Markdown
Member

@yangshun yangshun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you check the usage of js live?

- **Stopping event bubbling:** Imagine you have a nested element (like a button) inside a container element. Clicking the button might also trigger a click event on the container. By enabling event capturing on the container's event listener, you can capture the click event there and prevent it from traveling down to the button, potentially causing unintended behavior.
- **Custom dropdown menus:** When building custom dropdown menus, you might want to capture clicks outside the menu element to close the menu. Using `capture: true` on the `document` object allows you to listen for clicks anywhere on the page and close the menu if the click happens outside its boundaries.
- **Efficiency in certain scenarios:** In some situations, event capturing can be slightly more efficient than relying on bubbling. This is because the event doesn't need to propagate through all child elements before reaching the handler. However, the performance difference is usually negligible for most web applications.
```js live
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

live should only be used for those that can be executed. I don't think we have a way to execute stuff that involves the DOM at the moment.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did check all the live code and it all works and this one as well

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still want to avoid live for the code that involve DOM?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved the query over the chat, so merging it

@niteshseram niteshseram merged commit cf075fe into main May 6, 2026
@niteshseram niteshseram deleted the nitesh/SEO-update-quiz branch May 6, 2026 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants