-
Notifications
You must be signed in to change notification settings - Fork 71
Better http #100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Better http #100
Conversation
@@ -16,7 +16,8 @@ end | |||
gem "actionpack-action_caching", "~> 1.2" | |||
gem "active_record_union", "~> 1.3" | |||
gem "acts-as-taggable-on", "~> 5.0" | |||
gem "acts_as_follower", github: "thepracticaldev/acts_as_follower", branch: "master" | |||
# gem "acts_as_follower", github: "thepracticaldev/acts_as_follower", branch: "master" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Пара гемов оказались не доступны - заменил на одноименные форки.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
блин, странно, мне казалось я это фиксил
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
webpage test after
https://www.webpagetest.org/result/231119_BiDcYF_8TG/
Можно заметить, что картинки отобразились криво - судя по всему, inline_svg плохо дружит с кнопками. Навскидку отрехтовать эту часть не смог, но подумал, что это вне объема нашего упражнения.
app/views/articles/index.html.erb
Outdated
@@ -71,10 +71,10 @@ | |||
</div> | |||
</div> | |||
<button class="on-page-nav-butt on-page-nav-butt-left" id="on-page-nav-butt-left" aria-label="nav-button-left"> | |||
<img src="<%= asset_path "stack.svg" %>" alt="left-sidebar-nav"> | |||
<%= inline_svg("stack.svg", size: "100% * 100%", alt: "left-sidebar-nav") %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ссылки на сравнение sitespeed
, кажется, убрали. Поэтому кажется их придется добавить вручную, чтобы посмотреть результат: https://compare.sitespeed.io/
"<#{view_context.asset_path('stack.svg')}>; rel=preload; as=image", | ||
"<#{view_context.asset_path('lightning.svg')}>; rel=preload; as=image", | ||
] | ||
response.headers["Link"] = push_headers.join(", ") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ 👌
What type of PR is this? (check all applicable)
Description
Related Tickets & Documents
Mobile & Desktop Screenshots/Recordings (if there are UI changes)
Added to documentation?
[optional] What gif best describes this PR or how it makes you feel?