11ty / eleventy-base-blog

A starter repository for a blog web site using the Eleventy static site generator.
https://demo-base-blog.11ty.dev/
MIT License
1.24k stars 616 forks source link

Run browsersync in ghost mode by default #34

Closed clottman closed 4 years ago

clottman commented 5 years ago

The average user probably does not want every reader's scroll position synced to every other reader.

Found this after sharing a blog post on cassey-til.glitch.me, and the people I shared it with reported that their scroll position kept changing without them taking any action. Very disruptive reading experience!

https://www.browsersync.io/docs/options#option-ghostMode

@zachleat this might even be worth including in the default eleventy config, it was hard to discover and a pretty big departure from how I expect blogs to work.

clottman commented 5 years ago

Thanks to conversation in Twitter I have come to understand that eleventy --serve is meant for development, not production use like I've been doing in various Glitch projects using Eleventy.

I still think turning off ghostmode by default might be the right choice, but it's not as urgent as I thought initially.

zachleat commented 4 years ago

Also filed https://github.com/11ty/eleventy/issues/841 for this upstream

zachleat commented 4 years ago

Thanks!

SimonEast commented 3 years ago

I actually found ghost mode pretty cool and helpful during some recent development, and wouldn't have even known about it if it wasn't enabled by default. But I agree that it could be clearer that --serve is meant for development, and perhaps this option could be easily disabled if needed.