Sites built with Svelte are faster than those built with React and Vue. Sites built with React are faster than those built with Vue.
Svelte produces larger pages: 3.9 MB vs 3.5 MB for Vue and 3.3 MB for React.
Sites built with Svelte are faster than those built with React and Vue. Sites built with React are faster than those built with Vue.
Svelte produces larger pages: 3.9 MB vs 3.5 MB for Vue and 3.3 MB for React.
(new PerformanceObserver((list) => {
const entries = list.getEntriesByType('layout-shift');
entries.forEach((/*LayoutShift*/entry) => {
console.log(entry);
const /*Array<LayoutShiftAttribution>*/sources = entry.sources || [];
const changes = [];
for (const source of sources) {
const { currentRect: cr, previousRect: pr, node } = source;
const dx = cr.x - pr.x;
const dy = cr.y - pr.y;
const ds = cr.width * cr.height - pr.width * pr.height;
changes.push({dx, dy, ds, node});
}
if (changes.length) {
console.table(changes);
}
});
})).observe({ type: 'layout-shift', buffered: true });
https://2023.stateofreact.com/en-US/features/
extends: [
'eslint:recommended',
'plugin:react/recommended', // if react is used
'plugin:react-hooks/recommended', // if react is used
'plugin:@typescript-eslint/recommended', // if ts
'plugin:prettier/recommended'
],
plugins: ['prettier', 'react', 'react-hooks', '@typescript-eslint'],
With this setup ESLint starts to use Prettier and its rules for code style checks and autofixes.
Moreover, now you don't need two separate commands to run ESLint and Prettier, they both will run with a single command eslint --fix.
Additional steps for VS Code:
| Keyword | Example |
|---|---|
| cookie-domain: | cookie-domain:.google.com |
| cookie-name: | |
| cookie-path: | cookie-path:/images |
| cookie-value: | |
| domain: | domain:*.com domain:example.com |
| has-response-header: | has-response-header:Access-Control-Allow-Origin |
| is: | is:from-cache is:service-worker-intercepted |
| larger-than: | larger-than:10k |
| method: | method:POST |
| mime-type: | mime-type:application/json |
| mixed-content: | |
| priority: | priority:Highest |
| resource-type: | resource-type:image resource-type:other |
| scheme: | scheme:https |
| set-cookie-domain: | set-cookie-domain:.google.com |
| set-cookie-name: | set-cookie-name:__utma |
| set-cookie-value: | set-cookie-value:abc123 |
| status-code: | status-code:204 |
| url: | url:data: |
To invert the rule, i.e. leave URLs that do not match, prepend it with minus sign, e.g. -is:from-cache means "all resources loaded not from cache".
Any other text leaves only URLs with that text somewhere in it (in path, query, etc.)
Examples:
http://www.brendangregg.com/blog/2018-06-30/benchmarking-checklist.html
По правилам написания заимствованных слов нет единого мнения даже у профессиональных филологов. Например, филологи активно спорят, как правильно писать — блогер или блоггер. Для соблюдения принципа единообразия в текстах лучше использовать консенсусные варианты написания: