akshitagupta15june / akshitagupta15june/Moksh

[FEATURE REQUEST] : Update Copyright Year Dynamically After DOM Load

Abierto
#1,298 3 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
HTML
Estrellas
199
Forks
386
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

## Description

**Is your feature request related to a problem? Please describe.**
The current code attempts to dynamically update the copyright year on a web page using JavaScript. However, there is an issue related to the timing of script execution and the DOM content loading. To ensure accurate execution and prevent potential errors, the code needs to be modified to run after the DOM has been fully loaded.

**Describe the solution you'd like**
Wrap the existing code in an event listener for the "DOMContentLoaded" event. This event will trigger the JavaScript code only after the entire DOM content has finished loading. By making this change, we can ensure that the script runs in the appropriate context and successfully updates the copyright year.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.