Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
9
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Defend the Web
Website
Commits
594b98ea
Commit
594b98ea
authored
Nov 26, 2019
by
Luke Ward
Browse files
Fix lazy loading images with discussion infinite scroll
parent
900fb2e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/www/js/_discussions.js
src/www/js/_discussions.js
+3
-0
No files found.
src/www/js/_discussions.js
View file @
594b98ea
...
...
@@ -34,6 +34,9 @@ $(function() {
$
(
'
.discussion-list-threads:not(.discussion-list-threads--sticky)
'
).
append
(
data
);
// Load in lazy images
document
.
dtw
.
lazy
();
loading
=
false
;
}).
always
(
function
()
{
$
(
'
.pagination .loader
'
).
addClass
(
'
hide
'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment