pustelto / personal_web Goto Github PK
View Code? Open in Web Editor NEWSource code of my personal website: https://pustelto.com
License: MIT License
Source code of my personal website: https://pustelto.com
License: MIT License
Hello!
Just read your Optimizing CSS for faster page loads article, great read! As someone also curious about frontend performance, I decided to check how you were using responsive images and noticed that for your blog post images the sizes attribute is set as as: sizes="100vw, (min-width: 39.5rem) 608px"
.
The order of the media queries matter, and the first one that "matches" is selected. So the browser goes, oh the display size is 100vw
, you got it! Therefore, users are requesting the largest (1800px) file in some cases (my browser window maximized on my display is 1905px wide, so the browser assumes the display size of the image is 1905px).
Just reverse the order sizes="(min-width: 39.5rem) 608px, 100vw"
and I think you'll shave off some KBs. I was going to fork and make the one line contribution, but I haven't used eleventy before and so I'm not sure how to build and test.
检测到 Pustelto/personal_web 一共引入了1019个开源组件,存在34个漏洞
漏洞标题:serialize-javascript 代码问题漏洞
缺陷组件:[email protected]
漏洞编号:CVE-2020-7660
漏洞描述:Verizon serialize-javascript是美国威瑞森电信(Verizon)公司的一款支持将JavaScript序列化为 JSON超集的软件包。
serialize-javascript 3.1.0之前版本中存在代码问题漏洞。远程攻击者可借助index.js文件中的‘deleteFunctions’函数利用该漏洞注入任意代码。
国家漏洞库信息:https://www.cnvd.org.cn/flaw/show/CNVD-2020-53801
影响范围:(∞, 3.1.0)
最小修复版本:3.1.0
缺陷组件引入路径:[email protected]>[email protected]>[email protected]>[email protected]
[email protected]>[email protected]>[email protected]
另外还有34个漏洞,详细报告:https://mofeisec.com/jr?p=a159e3
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.