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

slickr tips #1

Open
yonicd opened this issue Feb 28, 2020 · 12 comments
Open

slickr tips #1

yonicd opened this issue Feb 28, 2020 · 12 comments

Comments

@yonicd
Copy link

yonicd commented Feb 28, 2020

very nice use of slickR!

for the heavier carousels you can use the lazy loading option. that will alleviate the pressure off the html.

last comment in the details block.

https://metrumresearchgroup.github.io/slickR/reference/slickR.html#details

@yonicd
Copy link
Author

yonicd commented Feb 28, 2020

I also think you meant in the envelope child to use these settings. The autoplay has to be TRUE for the speed to be used.

slickR::settings(autoplay = TRUE, autoplaySpeed = 100, fade = TRUE, adaptiveHeight = TRUE)

@dan-reznik
Copy link
Owner

dan-reznik commented Feb 28, 2020 via email

@yonicd
Copy link
Author

yonicd commented Feb 28, 2020

yes. that would be much lighter, and i think that lazyload works with urls and not embedded.

@yonicd
Copy link
Author

yonicd commented Feb 28, 2020

also try letting height be set internally and set width to "95%". that may get the sizing to react better

@dan-reznik
Copy link
Owner

dan-reznik commented Feb 28, 2020 via email

@yonicd
Copy link
Author

yonicd commented Feb 28, 2020

rmarkdown embeds on default. i went down that rabbit hole a while back. if you pass in url's it still forces an embed?

i use urls in the basics vignette of slickr and the size is not inflated. i have a ton of image calls in that file.

@yonicd
Copy link
Author

yonicd commented Feb 28, 2020

If the images (not in slickr) are local you could set embed to false and the html should link to the images i think. Here is a link in SO explaining how to do it. https://stackoverflow.com/questions/14870589/knitr-r-how-not-to-embed-images-in-the-html-file

@dan-reznik
Copy link
Owner

dan-reznik commented Feb 28, 2020 via email

@yonicd
Copy link
Author

yonicd commented Feb 28, 2020

hmmm not sure. maybe @ColinFay may know a trick for that

@yonicd
Copy link
Author

yonicd commented Feb 28, 2020

i would though still replace speed with autoplay = TRUE, autoplaySpeed = 100. I dont think speed actually does anything, at least in the html you have with the carousels they are not moving. if it is autoplaying that may get the slick to activate when you move tabs

@dan-reznik
Copy link
Owner

dan-reznik commented Feb 28, 2020 via email

@yonicd
Copy link
Author

yonicd commented Feb 28, 2020

you read the manual better than me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants