Comments (6)
Hi,
I think there is already some lazy loading for images, but it looks like it does not work so perfect for you :(
The issue might be also loading of JSON as it loads page by page, which means it makes more than one request to load all for creating the structure.
Is is possible somehow that you share the URL of your sample page with the actual album that you are loading so I can try to figure out what might be the issue.
from facebook-album-browser.
Hi,
Yeah, it's certainly possible. The site name is www.tartoo-tattoo.ee
I'm sure you will find many things that make your jaw drop, due to bad coding or such. X_x
from facebook-album-browser.
First thing, try not to load all albums at once. For example, when you click show works then you initialize the album in the container in case there is no photo elements in it, otherwise just show the container as it was loaded previously.
I hope this will help.
There is really no need to load everything when the page loads.
from facebook-album-browser.
Ah okay,
Sorry for bothering a bit more but what should I look for / do to achieve that?
Edit: Ah figured it out. Thanks for the help, even tho it was something I should've noticed myself right away
from facebook-album-browser.
Ok,
This is the part I was reffering to
$(document).ready(function () {
$(".fb-album-container").each(function () {
.....
)}
)}
This will take so much time while initially loading the page.
Instead, attach handle to buttons with nav-toggle class. I suggest you add one more dummy class which you will use for the selector. Same class should be on the container which will be used for the album.
The rest is as I mentioned in previous message: when expanded load the album if not loaded previously
I hope I helped
from facebook-album-browser.
Oh you helped much. :)
I actually facepalmed myself a bit later for asking this, it's basic jquery.... I've been working with angular too much lately. :D
I think it should be something like this to fire it just once when the toggle gets clicked:
$('#nav-toggle').one('click', function(){
I will experiment with it to find the best solution to that. :)
Thanks again.
from facebook-album-browser.
Related Issues (20)
- FBAB stopped working HOT 3
- Show photos in an albim HOT 2
- Thumbnails taking to long load or not loading HOT 4
- Plugin stopped working HOT 1
- Stopped working HOT 1
- if number of images in the folder is < photosPageSize
- Album only loading partially.
- Change Language HOT 3
- FBAB Works on local site, but not web host HOT 6
- target_blank HOT 1
- How to open actual size image on click? HOT 2
- Rejection of Extended permission user_photos HOT 1
- Not working HOT 1
- Can't get album to load for account HOT 14
- Linked facebook albums are not loading HOT 1
- Rate Limit Reached HOT 1
- Facebook Album no longer working HOT 1
- Facebook API Limit Reached HOT 3
- Cannot read property 'length' of undefined HOT 1
- Issue Regarding the Facebool Albums. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from facebook-album-browser.