Not all states have a URL change associated with them. While using an app that does style injection, you can leave that dialog box open in the browser and author CSS that changes it and watch those changes happen immediately without refreshing the browser and losing that state. Say you have a dialog box that pops up with a click and you want to style that dialog box. Why is Style Injection cool?īecause the page doesn’t refresh, you can style the page without affecting its state. It’s open source so maybe someone could add it =). Mixture is going to have live updating as well, but I haven’t looked into how they are doing it just yet. Without the script tag you can get it working in Safari, Chrome, and Firefox. If you’re willing to put a script tag on your page, LiveReload works in Chrome, Safari, Firefox, Mobile Safari, and Opera (with finagling). CodeKit only works with Safari and Chrome this way, but does so automatically without browser extensions. I’m a fan of CodeKit which has now also been doing this for a good while. But when you change CSS (whether it is preprocessed or not) the styles are “injected” meaning they take effect on the page without a refresh. Even that is handy, as it saves switching applications and manually refreshing the page. The name “LiveReload” implies that it reloads the page for you, which is true when you change HTML or JavaScript. Through browser extensions, as you save files, the changes are injected automatically. The first to come along that I knew of was LiveReload. No offense if you use and these editors or working this way, it’s just not for me. And besides, those aren’t going to work great when you’re preprocessing CSS. I like doing my testing in browsers that people use. Now that is built into Espresso and at a quick glance I saw it still does previews but not split pane editable previews.īut they used some built-in WebKit thing to do it, running who knows exactly what version. This isn’t a brand new concept, I just mention it now because it’s so awesome that if it’s not a part of your workflow you should consider updating yours to include it.įor a long time, Dreamweaver had the ability to show you a live preview of what you were building. By “style injection”, I mean being able to see styling changes immediately after authoring them without having to manually refresh your browser window.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |