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
Defaults options and LINK_SELECTOR querySelector #40
Comments
Hi Thetoine, For first question see this #4 For second question, and also the first, you can adjust manually the default option like this:
Hope this help |
Hi @thetoine, The I like the idea about Thanks! |
just wanted to thank @thetoine for his solution which worked great for me. Thanks! |
Hi @thetoine, any news on this? |
@gmrchk sorry, I was way too busy last week on clients job. So you did the change yourself, great ! |
I don't mean to butt in but I like the convention of including the word swup in the |
@thetoine No worries. I was just updating the docs, so I updated the default options in a process so it all fits. Thanks for making me do so! @dylanfisher |
Hey guys, wanted to check in with some other people who might have implemented this in WP. I was looking at adding a Webpack plugin for in-lining my critical path CSS, and it was not able to work because it couldn't access any HTML files. I'm wondering if that means that the preload for swup isn't going to work for wp? I'm continuing to use it because I think the animation stuff is useful but I'm curious how useful it actually is for the actual preloading of data etc. Any thoughts? |
Hi,
I'm playing with your lib for a Wordpress custom theme, really liking it so far!
Therefore, I had a couple of issues with my initial setup.
First thing, Wordpress will always output the full http:// URL by default (which is a good SEO practice also). Your default
LINK_SELECTOR
selector is targeting only relative link.By default, the LINK_SELECTOR could check if URL is for current origin :
Also, the class selector except the element to starts with the className, this works too :
It might be a little bit too loose though, any class contain this string part would be selected. The default could be something more specific to the purpose like
[class*="a-transition-"]
.Anyhow, this just my two cents. If you agree with this, I could fork and send a pull request.
Thanks.
The text was updated successfully, but these errors were encountered: