Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated popup.html and style.css #64

Merged
merged 2 commits into from
Oct 5, 2022

Conversation

BrunoLagoa
Copy link
Contributor

Follow my suggestion again without lint enabled.
We remove styles in html
We added some styles in styles.css

I hope now you don't consider this as spam =)

@BrunoLagoa
Copy link
Contributor Author

BrunoLagoa commented Oct 5, 2022

New PR following some doubts made in the failed PR.
Thanks for the feedback.

.power-switch {
margin: 3px;
}

Copy link
Owner

Choose a reason for hiding this comment

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

these changes will only bloat the css file and slow down loading.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just removed it from the html and added it to the css, but we can remove it.

Copy link
Owner

Choose a reason for hiding this comment

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

I just removed it from the html and added it to the css, but we can remove it.

it just makes sense to keep it inline as this way it loads faster as inline CSS is directly available

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If you remove this margin, it will put the item on the red line

Copy link
Owner

Choose a reason for hiding this comment

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

If you remove this margin, it will put the item on the red line

I never suggested removing it?

Copy link
Owner

Choose a reason for hiding this comment

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

I decided to remove the css in the html to make your html file more clean, since using styles.css in the project.

but inline CSS allows for faster load speeds

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In your project, impact is not considered, so overloading doesn't make sense to me. There are other techniques to minify your css.

Copy link
Contributor Author

@BrunoLagoa BrunoLagoa Oct 5, 2022

Choose a reason for hiding this comment

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

Copy link
Owner

Choose a reason for hiding this comment

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

In your project, impact is not considered, so overloading doesn't make sense to me. There are other techniques to minify your css.

I realise that but I don't see this to be necessary?

Copy link
Contributor Author

@BrunoLagoa BrunoLagoa Oct 5, 2022

Choose a reason for hiding this comment

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

@ImMattDavison ImMattDavison merged commit 6e1e678 into ImMattDavison:master Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants