Design comparison
SolutionDesign
Solution retrospective
Didn't know if it was better to make the "submit component" in the HTML, hided it and then change that via JS or directly do the render in JS.
Community feedback
- @zaks276Posted about 2 years ago
Hello Federico. Great job on the solution. It looks amazing.
To answer your question, both methods are fine however in my experience the image tends to load more slowly when you do the render in Javascript instead of hiding the HTML and then displaying it via Javascript. Generally too much Javascript tends to slow down websites.
Hope this was helpful.
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord