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

Version 14.1.0 prefetch={true} preload css doesn't working #61816

Closed
repcolding opened this issue Feb 8, 2024 · 3 comments
Closed

Version 14.1.0 prefetch={true} preload css doesn't working #61816

repcolding opened this issue Feb 8, 2024 · 3 comments
Labels

Comments

@repcolding
Copy link

I checked the version [email protected] and 14.0.3-canary.7. Specifying prefetch={true}. And the result is terrible:

[email protected]: No preloading of css
[email protected]: css is preloaded

const Folder: FC<IFolder> = ({ children, label, className, href = '#' }) => {
  return (
    <Link
      prefetch={true} // [email protected] and [email protected]
      scroll={false}
      href={href}
      className={cn(styles.folder, className)}
    >
      {children}

      <div className={styles.label}>{label}</div>
    </Link>
  )
}

[email protected]

next@14.0.3-canary.7

prefetch={true} preload css is working


[email protected]

next@14.1.0

prefetch={true} preload css doesn't working

Originally posted by @repcolding in #61259 (comment)

@arestov-work
Copy link

arestov-work commented Feb 8, 2024

I have got the same shit, fix the bug, please asap

@Henryyy-Hung
Copy link

I have encountered the same bug, which causing the html content displayed before css has been loaded.

Copy link
Contributor

This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants