Some compiler applications can do it directly for you like CodeKit if you’re a Mac user, or more notable software like Photoshop. There are many tools you can use to compress images, but depending on the format, you can select what works best for you. In addition to slowing the load time, you’re eating up your mobile users data by having them download large images. When users have to download large uncompressed images, all of that plays a role in increased load times. Compress Images Image Compression ToolĬompressing images is one of the biggest areas that is often overlooked and more often than not, this is the largest culprit for slow load times. Here’s a list of optimization tips you can do to help improve your grade, and get your site to an optimized state. Once you have a report, you now have a place to start. I typically start off by running a report on the site using a few different tools, such as Web Page Test, Google’s PageSpeed Insights, or GTmetrix. First thing is to get a benchmark for yourself. Now, regardless of whether you’re a global giant like Amazon, or a small local business, speeding up your website is going to help improve your bottom line.Īs an advocate for website performance, approaching the idea of optimizing a website can sometimes be a daunting task, but remember, website optimization is about the journey, not the destination, so break it up in to manageable pieces. In a recent report by Amazon, every 100ms in latency cost them 1% in sales. In an industry where fractions of seconds really are the benchmark, it’s so important to have an optimized site. Try keep things hyphenated Try using some punctuations Try using $ sign to declare variables-it will be easier to spot in the code, it will never run into transparent Mixin keyword argument conflicts.Why a Fast Website is Important to Your BusinessĪ slow website can be the result of a number of things, but most importantly, a slow website means your users are waiting for multiple seconds, seconds that may seem like hours, all because your site’s performance is not at the level it should be. This, is the main reason that it has not received as much attention as it should have.ĥ2 CONTINUED… This is why we should use some common conventions When border-radius() is invoked within a selector, the properties are expanded and copied into the selector.ĥ1 FLAWS It's problem lies in the fact that because it's syntax is so forgiving, and there are so many different ways to write a block of Stylus code it can be confusing to learn - it supplies the developer with no definitive direction. For example, we have a border-radius(n) function defined below, which is invoked as a mixin (i.e., invoked as a statement, rather than part of an expression). Stylus variables don't require anything to be prepended to them, although it allows the $ symbol.Ĥ9 CONTINUED… Mixins Both mixins and functions are defined in the same manner, but they are applied in different ways. Variables begin with dollar signs and are set like CSS properties: $width: 5em You can then refer to them in properties: #main with an indent, and an out dentĤ7 CONTINUED… Variables We may assign expressions to variables and use them throughout our stylesheet. The most straightforward way to use SassScript is to use variables. No more memorizing hex values!ġ0 CONTINUED… Variables have scope based on where they are defined. Works with hex values, strings of text, colors, numbers, Boolean values or even value lists. Variables Nesting Mixinsĩ CONTINUED… Variables Variables allow you to assign a value to an easy-to- remember placeholder name. SASS focuses on indentation and short hand.Ħ HARD TO CHOOSE? Sass can convert between SASS and SCSS with relative ease.ħ SASSY COMPONENTS A Sass project only needs two key components:Ĩ SASSY FEATURES Sass has 5 primary features. SCSS follows conventions of cssĥ Continued…. Serves as: Scripting language Preprocessor for CSSģ Function Sass compiles into CSS files. Sass is a scripting language that is interpreted into Cascading Style Sheets (CSS). Presentation on theme: "THEAMING WITH SASS Bringing sassy to CSS SITRA."- Presentation transcript:ġ THEAMING WITH SASS Bringing sassy to CSS SITRAĢ WHAT IS SASS? SASS is short for Syntactically Awesome Style Sheet.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |