Anonymous
hey! i'm not sure if you answer these kind of questions, so please feel free to ignore if you don't. do you know if there's a way to disable autoplay on videos in the tumblr theme? i knw there's ways to do it on the dashboard, but i mean specifically in a theme. whenever i have a video on, say page 1 of my theme, the load time is significantly longer than on page 2 with no videos, and on my /tagged/video page the load time is HELLA long. i'm using your flexible videos script, if that's any help!
hi me again lmao, i just realised autoplay only happens on videos posted in NPF, videos posted as a traditional video post don’t have autoplay. and from my understanding most theme creators don’t really know how to work around NPF posts yet. sorry to waste your time!!
Yep. It’s slower because the script has to iterate through every post with a video after it has been loaded. If there’s any way to make the runtime faster, feel free to suggest improvements.
Also, thanks for bringing up the NPF posts. I didn’t know Tumblr had a new API and now you can fetch post’s data with it in a clean way. The issue is you have to authenticate your API key to use it, so that’s why creators can’t work around it. You can definitely do cooler things.