Unless otherwise stated, all content on this website, including code snippets, tips, techniques, and other materials, is made available under the MIT license. By using the content, you agree to the terms of this license.
You can read more about my decision in my announcement post.
The MIT license allows you to:
MIT License
Copyright (c) 2007–2024 Harry Roberts
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the ‘Software’), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
When using content from this site:
If you use any of my code snippets or examples—including in modified or derivative works—you must include proper credit and attribution. This ensures others know the source and that you respect the license terms.
Examples of how to provide attribution:
HTML:
<!--! Content by Harry Roberts, csswizardry.com, available under the MIT license. -->
CSS:
/*! Content by Harry Roberts, csswizardry.com, available under the MIT license. */
JS:
/*! Content by Harry Roberts, csswizardry.com, available under the MIT license. */
No, you don’t need to pay to use any of the code shared on csswizardry.com
. My content is licensed under the MIT License, which allows free use for both personal and commercial purposes.
No, there’s no need to apply or seek permission. The MIT License already grants you the right to use, modify, and distribute the code as long as you meet its conditions, which primarily involve proper attribution.
You’re not required to inform me, but I’d love to hear about it! It’s always rewarding to see how my work is being used, so feel free to drop me a line if you’d like to share what you’ve built.
If you don’t comply with the MIT License (e.g. by failing to include attribution), you’re in breach of the license. This means you lose the rights granted by it, and technically, your use of the code would be unauthorised.
I’d prefer to resolve issues amicably, so if there’s a misunderstanding, I’d encourage you to reach out so we can work things out.
Yes, you’re free to use my code in commercial projects. The MIT License permits this, and there are no hidden fees or obligations beyond proper attribution.
Proper attribution involves giving credit to the original source of the code. Typically, this means including a copy of the license and copyright notice in your repository and a comment in your code.
Yes, the MIT License allows you to modify my code to suit your needs. Even if you make changes, you still need to include attribution to the original source.
Not necessarily. While I’m happy to see my code being used, using it doesn’t imply my endorsement of your project.
If you’re aware of someone misusing my code, feel free to let me know. However, enforcement is ultimately my responsibility, and I’ll handle it as needed.
You can read the full text of the MIT License or read the License page of this site.
I’d love to help! Feel free to get in touch with me.
Hi there, I’m Harry Roberts. I am an award-winning Consultant Web Performance Engineer, designer, developer, writer, and speaker from the UK. I write, Tweet, speak, and share code about measuring and improving site-speed. You should hire me.
You can now find me on Mastodon.
I help teams achieve class-leading web performance, providing consultancy, guidance, and hands-on expertise.
I specialise in tackling complex, large-scale projects where speed, scalability, and reliability are critical to success.