Skip to content

None of the demos work in Firefox or Safari when running locally using the dev server #267

Description

@haach

Hey! I wanted to use this polyfill in my library, but when I fired up the demos locally, I noticed that none of them work properly in either OSx Firefox or Safari. On Chrome everything appears to work as expected as far as I can tell.

I am on macOS Ventura (13.6.6)

Here are some recordings:

Chrome, Version 124.0.6367.158
https://github.com/flackr/scroll-timeline/assets/34210193/f2688d5e-8d80-428b-b532-6fb1966765ba

Firefox, version 106.0.1
https://github.com/flackr/scroll-timeline/assets/34210193/06cfab04-253a-4974-b65c-9dd86d51c413

Safari, Version 17.4.1
https://github.com/flackr/scroll-timeline/assets/34210193/feba95f6-ddd6-4415-88c9-d9f870d60fda

Has anyone else ran into a similar issue? I am interested in the scroll( ) function polyfill

Activity

  1. Floran-mtte commented on May 18, 2024

    @Floran-mtte

    Hey @haach, same here. It isn't working locally or when using the CDN on Safari iOS and macOS 17.4."

  2. bramus commented on May 18, 2024

    @bramus
    Collaborator

    Check the console. You’ll see an error that it can’t load thescroll-timeline.js file.

    E.g, in Safari:

    Failed to load resource: the server responded with a status of 404 (Not Found)
    

    The fix is that you need to build the project first before serving the demos.

    # Build
    npm run build
    
    # Start DevServer
    npm run dev
    

    Preferably, npm run dev would also build the project first (and set up a watcher).

  3. changed the title [-]None of the demos seem to work on OSx Firefox or Safari[/-] [+]None of the demos work in Firefox or Safari when running locally using the dev server[/+] on May 18, 2024
  4. haach commented on May 21, 2024

    @haach
    Author

    Check the console. You’ll see an error that it can’t load thescroll-timeline.js file.

    E.g, in Safari:

    Failed to load resource: the server responded with a status of 404 (Not Found)
    

    The fix is that you need to build the project first before serving the demos.

    # Build
    npm run build
    
    # Start DevServer
    npm run dev
    

    Preferably, npm run dev would also build the project first (and set up a watcher).

    That worked :) Thank you!!

  5. bramus commented on May 21, 2024

    @bramus
    Collaborator

    Reopening as it’s best that we get this fixed, or at least make a note of it in the README.

  6. reopened this on May 21, 2024
  7. added a commit that references this issue on Aug 12, 2024
    2f93789
  8. added
    documentation
    on Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions