Skip to content
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

add lazy loading on favicon #2962

Merged
merged 1 commit into from
May 10, 2020
Merged

add lazy loading on favicon #2962

merged 1 commit into from
May 10, 2020

Conversation

upskaling
Copy link
Contributor

chargement des favicon en différé

@Alkarex Alkarex added this to the 1.16.1 milestone May 10, 2020
@Alkarex Alkarex added the UI 🎨 User Interfaces label May 10, 2020
@@ -94,7 +94,7 @@
<a class="dropdown-toggle" data-fweb="<?= $feed->website() ?>"><?= _i('configure') ?></a>
<?php /* feed_config_template */ ?>
</div>
<?php if (FreshRSS_Context::$user_conf->show_favicons): ?><img class="favicon" src="<?= $feed->favicon() ?>" alt="✇" /><?php endif; ?>
<?php if (FreshRSS_Context::$user_conf->show_favicons): ?><img class="favicon" src="<?= $feed->favicon() ?>" alt="✇" loading="lazy" /><?php endif; ?>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it actually make a difference here given how it doesn't depend on display:none? I ask mainly because the articles themselves are already lazy loaded.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the mobile view, this part is now shown, for instance. And in the main view, when categories are collapsed, it might work as well (not tested yet)

Copy link
Member

@Alkarex Alkarex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, and I see no drawback of starting experimenting with this attribute

@Alkarex Alkarex merged commit bd8f6f1 into FreshRSS:master May 10, 2020
@Alkarex
Copy link
Member

Alkarex commented May 10, 2020

Merci @upskaling
Est-ce vous pourriez ajouter une ligne pour vous dans https://github.com/FreshRSS/FreshRSS/blob/master/CREDITS.md ?

upskaling added a commit to upskaling/FreshRSS that referenced this pull request May 11, 2020
upskaling added a commit to upskaling/FreshRSS that referenced this pull request May 11, 2020
Alkarex pushed a commit that referenced this pull request May 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UI 🎨 User Interfaces
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants