Skip to content

File name optimization, add "defer", console greeting to confirm connectivity #2323

Closed
@klutchdev

Description

@klutchdev

I'm submitting a ...

  • bug report
  • feature request
  • other (Please do not submit support requests here (below))

Hey Everyone!!!

I LOVE this tool, it's amazing for devs such as myself that write mostly in Vanilla Js, especially when frameworks are overkill for the task at hand.
My feature request(s) are simple- I'd be happy to help implement them if any of it is deemed worthy!

1. Change the "main.js" file name to "app.js"

Vs Code and many other IDEs/code editors default to "app.js" as the "default" Javascript file

2. Add "defer" to the source Js file script tag:

<script defer src="app.js"></script>

This allows all DOM elements to load before executing any Js scripts

3. Add 1 line of code to main.js (or app.js, if its changed):

console.log(' √ Js file connected! Thanks for using HTML5 Boilerplate 🔥 ');

This is just a neat way of confirming that our HTML and Js files are good to go!

4. Change the "main.css" file name to "style.css"

<link rel="stylesheet" href="style.css">

Vs Code and many other IDEs/code editors default to "style.css" as the "default" css file import

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions