jakiestfu / jakiestfu/Snap.js

not working if using data-prefetch=“true”

Open
#191 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.9k
Forks
642
PR merge metrics
No merged PRs in 30d

Description

Hi ,
I facing this problem, Inside my project i got two pages. One is page1.html another is page2.html. And i putting this snap.js inside my page2.html.

So nw is my problem. I put data-prefetch=“true” inside my hperlink to navigate to page2.html The snap.js is not functioning. But oncei change the link to rel="externak" . Then the snap.js is working very perfect.

So it tis is a bug? hw to i solve them if i still want to use data=perfetch inside my link.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the navigation from page1.html to page2.html with data-prefetch="true" and compare it with rel="external" while loading snap.js in page2.html. Trace how prefetching loads page2.html and whether Snap.js initializes afterward; done means identifying the cause and confirming a fix or documented limitation with both link forms.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.