Giter Site home page Giter Site logo

Comments (5)

dhh avatar dhh commented on July 17, 2024

We should only reload on JS and CSS changes IMO. Browsers will unfortunately not pick up dynamically adding the rss link. Most are entirely removing rss support anyway as well.

On Oct 19, 2012, at 6:12, Jonathan del Strother [email protected] wrote:

Hi - I've been using Pjax in a limited scope for a while, but only just started trying out Turbolinks in our app, so forgive me if I'm missing something.

I'm struggling with the assetsChanged method always returning true for pretty much any two pages on our site, which then results in Turbolinks doing a full page reload. We have a number of oembed tags in our pages, as well as specialised RSS for differing areas of the site, and some legacy Facebook tags like rel=image_src.

I'm wondering if it would make sense to be able to tell Turbolinks to ignore link tags with certain type or rel attributes (eg "application/xml+oembed"). There are obvious problems with that approach - eg the ombed tags would still refer to an old page, but since they're intended for machine consumption only perhaps it doesn't matter. (RSS is a bit trickier... ideally you might replace the old RSS tags in the head with the new ones, though I'm not even sure if browsers would notice the change. Maybe that doesn't matter though, since having an RSS button in your browser chrome seems to be rapidly disappearing.)

Any thoughts? Or am I doing it wrong?


Reply to this email directly or view it on GitHub.

from turbolinks-classic.

jdelStrother avatar jdelStrother commented on July 17, 2024

If you like I can try to come up with a patch this weekend for just extracting <script> and <link rel=stylesheet> tags when building the list of assets?

from turbolinks-classic.

dhh avatar dhh commented on July 17, 2024

Please do.

On Oct 19, 2012, at 7:49 AM, Jonathan del Strother [email protected] wrote:

If you like I can try to come up with a patch this weekend for just extracting <script> and tags when building the list of assets?


Reply to this email directly or view it on GitHub.

from turbolinks-classic.

davydotcom avatar davydotcom commented on July 17, 2024

I discovered this myself, on a blog site I was working with turbolinks on last weekend with regards to rss. I wrote this particular chunk of code and forgot to consider those cases. Blame me for that one :/

from turbolinks-classic.

davydotcom avatar davydotcom commented on July 17, 2024

closable

from turbolinks-classic.

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.