"aSyNcId" text is sometimes inserted before header and after footer
See original GitHub issueIssue Summary
I see some weird text injected into my pages sometimes, which is visible above and below my expected content.
- It always seems to mention “aSyNcId”.
- Repro is inconsistent.
- Doesn’t seem to be part of my theme.
- Only started after upgrading to Ghost 0.8.0 today.
- I also ran
npm install --production
per the Ghost upgrade doc.
- I also ran
Screenshot of the source
My theme’s default file is viewable on the github repo.
- There is nothing between the open body tag and header, yet there is content being served there.
- I only see
{{ghost_foot}}
before the close body tag (nothing set in this field in admin panel).
Steps to Reproduce
- Load a Ghost page and compare the content with expected content
Notes:
- I first saw this repro on one of my post pages, but it didn’t persist after a refresh or retracing my steps (click through to post page from home page).
- After this repro’d on my home page after a cold load, I decided to open this issue.
Technical details:
- Ghost Version: 0.8.0
- Node Version: 4.3.4
- Browser/OS: Chrome/Windows
- Database: sqlite3
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Should Jquery code go in header or footer? - Stack Overflow
An alternative suggestion that often comes up is to use deferred scripts. The DEFER attribute indicates that the script does not contain document.write, ......
Read more >The Simplest Ways to Handle HTML Includes | CSS-Tricks
You'd name the files header.html and footer.html and put them in /includes/ and then it'll make a build with the includes processed when ......
Read more >Extra whitespace above the header and below the footer. #4132
I have configured a header and footer for the site example.com and I have got the following issue. Please include code that reproduces...
Read more >HTML <header> Tag - W3docs
The <header> tag is one of the HTML5 elements. In an HTML document, it is allowed to use several <header> tags, which can...
Read more >Custom code in head and body tags - Webflow University
The Head Code section in the Custom Code tab of site settings. Footer code. Code entered in the Footer code section appears before...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Well that’s pretty weird in and of itself - but as you’re not nesting any of the async helpers it would have been even weirder if this was easily reproducible!
I can only assume it was an artefact of the upgrade - something cached somewhere and getting confused, although I can’t think what.
I’ll keep an eye out for similar issues.
I updated the number of posts to see per page in Ghost settings, and when refreshing my main page, saw this issue again. It appears to have disappeared since, however. 😃