Coder Social home page Coder Social logo

Comments (24)

nicgutierrez avatar nicgutierrez commented on September 24, 2024

Same here but I'm using a div.

from instantclick.

cfenollosa avatar cfenollosa commented on September 24, 2024

I think it's a CSS problem in general. I can't use instaclick because when the new page is loaded, the CSS for that page isn't loaded properly, so it keeps using the styles from the old page.

I'm using Safari, maybe it's a browser issue.

from instantclick.

ooxi avatar ooxi commented on September 24, 2024

@cfenollosa do you define the styles in the head section, because only the body gets swapped

from instantclick.

cfenollosa avatar cfenollosa commented on September 24, 2024

Yes, it's a CSS file which gets included in the <head>

That's nice to know, thanks!

from instantclick.

dieulot avatar dieulot commented on September 24, 2024

Same here, that’s weird. I don’t think pjax and Turbolinks have those problem (I hope!), I’ll check how they handle that.

from instantclick.

oobgam avatar oobgam commented on September 24, 2024

Try using absolute paths instead of relative paths for the background image.

from instantclick.

thomashub avatar thomashub commented on September 24, 2024

oobgam: mine is an absolute path, i.e. /images/image.png.

from instantclick.

oobgam avatar oobgam commented on September 24, 2024

@thomashub sorry, what I meant was the http:// in the url.

from instantclick.

nicgutierrez avatar nicgutierrez commented on September 24, 2024

@oobgam same issue using http://.

from instantclick.

ooxi avatar ooxi commented on September 24, 2024

@nicgutierrez Could you post a test case?

from instantclick.

tombresson avatar tombresson commented on September 24, 2024

Hi @ooxi, I tried it on my ghost blog yesterday and had the same issue. I removed it, but I'll put it back tonight and post an update with the URL when it's up.

from instantclick.

ooxi avatar ooxi commented on September 24, 2024

Thanks @turfyman !

from instantclick.

MarkVink avatar MarkVink commented on September 24, 2024

I have the same problem using Safari

from instantclick.

ooxi avatar ooxi commented on September 24, 2024

@MarkVink Could you please provide a test case since @turfyman did not :(

from instantclick.

MarkVink avatar MarkVink commented on September 24, 2024

@ooxi I did some more investigation into this problem for my specific situation. After loading the webpage with Instantclick the background keeps blank when displaying multiple background-images in one element. See my snippet below;

<td style="background-image: url({{ $profile->account->getThumbnailURL() }}), url({{ cdn('images/nopic.jpg') }});"></td>

For my application the profile photos are stored on Amazon S3 and distributed over Cloudfront, a job queue is responsible for transferring those pictures to Amazon. Since I'm not entirely sure about when the photo is processed and available over Cloudfront, I'm displaying a second background-image; for when there is no picture (yet).

For now I just go with displaying one background-images (the first one), which works fine with Instantclick (for me tho).

from instantclick.

ooxi avatar ooxi commented on September 24, 2024

Do you have a link where I could peek a look?

from instantclick.

XzanderX avatar XzanderX commented on September 24, 2024

I've got the same issue. I'm trying to use Instantclick with Swipe.JS

from instantclick.

dieulot avatar dieulot commented on September 24, 2024

Can’t reproduce it anymore, looks like it isn’t there anymore.

from instantclick.

ASP1234 avatar ASP1234 commented on September 24, 2024

Hey, I am even facing a similar issue asp1234.github.io my pic is not getting loaded :(

from instantclick.

jocooler avatar jocooler commented on September 24, 2024

Just to confirm, I pulled down the latest version of InstantClick and was having this issue. The only thing that fixes it is using the absolute URL (http://....).

from instantclick.

ASP1234 avatar ASP1234 commented on September 24, 2024

Github pages takes time to show changes when you push it.

from instantclick.

dieulot avatar dieulot commented on September 24, 2024

If anyone could upload a test site or point to a site with this problem (sorry about the delay and missing @ASP1234’s one), that’d help.

from instantclick.

xiongxoy avatar xiongxoy commented on September 24, 2024

Same problem here. Using 'http://' helps, but the context root might change, so I can't use that.

from instantclick.

ooxi avatar ooxi commented on September 24, 2024

@xiongxoy Could you provide a demo?

from instantclick.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.