-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
[FEATURE] load lightgallery js on demand #1382
Labels
new feature
New feature
Comments
wu0407
added a commit
to wu0407/DoIt
that referenced
this issue
Nov 6, 2024
I think the easiest fix is to just mark these scripts as deferred DoIt/layouts/partials/assets.html Lines 56 to 60 in e68974c
|
hodory
pushed a commit
to hodory/DoIt
that referenced
this issue
Dec 16, 2024
wu0407
pushed a commit
to wu0407/DoIt
that referenced
this issue
Dec 18, 2024
Jatin794
pushed a commit
to Jatin794/bog
that referenced
this issue
Dec 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the feature you want 描述你的功能需求
The lightgallery resource is large, so need to optimize loading speed.
It is very difficult to determine whether there is an image in the summary of the homepage on the render.
But It is easy to determine whether there is an image on the article page.
There are many pits about
Scracth
Store
and render cache on the Hugo server. https://discourse.gohugo.io/t/strange-behavior-with-scratch-variable/52288/11?u=xiao_qingSo The best method is to load it on demand from the front end.
Useful reference 有价值的参考
No response
The text was updated successfully, but these errors were encountered: