You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the html format would be the same for each profile, I would consider writing the DOM elements inside the profile.html by default (e.g. h2 etc with all the class names and other attributes like aria-labels), and then for the profile.js file just target each element and use .textContent to change the content of the element.
This means your javascript wouldn't be manipulating DOM too much (which could be faster? 🤔)
The text was updated successfully, but these errors were encountered:
It's a really minor issue (sorry I'm nit picking 😭)
But I think
profile.html
lists all of your own profile information.ToVaHayGi/public/profile.html
Lines 9 to 12 in 4b3cf6e
Since the html format would be the same for each profile, I would consider writing the DOM elements inside the
profile.html
by default (e.g.h2
etc with all the class names and other attributes like aria-labels), and then for theprofile.js
file just target each element and use.textContent
to change the content of the element.This means your javascript wouldn't be manipulating DOM too much (which could be faster? 🤔)
The text was updated successfully, but these errors were encountered: