Skip to content
This repository has been archived by the owner on Jul 31, 2019. It is now read-only.

Issue 1991 #2008

Closed
wants to merge 3 commits into from
Closed

Issue 1991 #2008

wants to merge 3 commits into from

Conversation

Mordax
Copy link

@Mordax Mordax commented Apr 20, 2017

Cleaning up the preloading of Bramble by using prefetch. Fixes #1991.

(Excuse the slight fumbling of this, I thought I could pull within the same issue number)

Realized my error and in the process of fixing it

@Mordax Mordax closed this Apr 20, 2017
@Mordax Mordax reopened this Apr 20, 2017
$.ajax({url: url, dataType: "text"});
});
//Using prefetch for easier cacheing and preloading of resources
<link rel="prefetch" href="/dist/styles/brackets.min.css">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is HTML, and you're putting it in a JavaScript file. You can't mix these. This would have to go in the HTML for the homepage, see https://github.com/mozilla/thimble.mozilla.org/blob/master/views/homepage/index.html.

Next issue: you need to fix the URLs you are loading, as these are going to try and load from the Thimble server.

@gideonthomas
Copy link
Contributor

Note: The purpose of this seems to conflict with: #2013. Are we completely stopping prefetching Bramble or just changing the way we do it?
cc @humphd

@humphd
Copy link
Contributor

humphd commented Apr 23, 2017

Changing the way we do it to be more modern, less of a hack, and these 2 PRs can work together to achieve it.

@Mordax
Copy link
Author

Mordax commented Apr 23, 2017

I realized my HTML in the Javascript mistake right after I pushed the changes - my bad!

Hopefully this works - the reason I took a while to fix this was because I wanted to check if the loading was actually speeding up and I ran into some weird Vagrant error making insanely long Windows path names.

@humphd
Copy link
Contributor

humphd commented May 31, 2017

I'm finishing this in #2234

@humphd humphd closed this May 31, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants