GithubHelp home page GithubHelp logo

dieulot / instantclick-website Goto Github PK

View Code? Open in Web Editor NEW
71.0 71.0 8.0 586 KB

InstantClick’s website

Home Page: http://instantclick.io

License: MIT License

Makefile 0.12% JavaScript 22.95% PHP 7.31% HTML 61.33% CSS 8.29%

instantclick-website's Introduction

instantclick-website's People

Contributors

dieulot avatar tehshrike avatar thibaudcolas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

instantclick-website's Issues

Adding "data-no-instant" with jQuery?

I have a situation where I cannot easily add data-no-instant directly to the markup and instead need to add it with Javascript.

If I wrap the InstantClick.init(); in a document ready jquery function, then when I add the attributes to the elements on page load it works OK. However, once I navigate away from the page to another page and then back to the original page (homepage in this case). The data-no-instant is still present on the elements- but they no longer work and InstantClick still tries to preload the page.

Also, why is it setup so that data-no-instant isn't a proper attribute? The plugin should look for data-no-instant=true or data-no-instant=data-no-instant.

Preload external links on iframe?

Hello, I have simple website with 2 frames, sidebar and content.

Sidebar has many links to external websites and when I click on those links I usually see white screen for 5 secs before sites starts to load. I don't want that. So here is a questions:

  1. Does instantclick supports external links to preload?
  2. How it supports "base target="main"/" in HEAD section? When I intalled it, I could get to open my links on content iframe, it always opening links in sidebar.

New Feature: Add ability to have more than 'a' elements trigger the load of page

Perhaps you could add in the ability to have more than 'a' elements trigger the instant click, this could allow more customisation to a potential page, such as 'div' elements replacing 'a' elements.

Scenario:
I was trying to use a table with links to position links, when I came upon a problem, getting the child a element to fill the parent, which was a 'td', I spent ages trying to find a way to do that, so I wanted to be able to use more than just a elements for instant click, I tried to find a way, but I am not that good with JavaScript, so could not. I have found a way, after trawling many forums and pages,

thre is a problem while working with bootstrap model

you can check by yourself
http://oceangreen.ml/admin/
please visit this site
then do login with
email : [email protected]
password : test1234

then visit the state section under the home link, the edit button in-front of each state name has a bootstrap model. first time when i click the button model open but the background opacity goes high to 100%,
or sometime when we click the button the model just blink up.

i wann use instantclick along with bootstrap features, what should be the solution

Some typos

Leaving these in an issue as per contributing guidelines, let me know if you'd like a PR

  • /: "scales to appropriate size" should be "scales to the appropriate size"
  • /download: "Read those articles" should be "Read these articles"
  • /how-it-works: "InstantClick shows his" should be something like "InstantClick shows its own"
  • /blacklisting & /assets-changes: "add it a ... attribute" should be "add a ... attribute" or "give it a ... attribute"

Click event can be fired without touch start

Since the action of click doesn't require user's touch on the button or link, the 'Click − Touchstart' expression will not work well under such circumstance that user touch outside the button or link (but very close). It will lead to the result that 'Click − Touchstart' time become longer and longer because the star time is never resetted.

I don't know how to fix this. If you don't think it's a problem you can closet this issue

4.0

Would love to see 4.0 or onward if you plan on restarting on anytime soon. There are many features that would be great to have, like ajax forms and bug fixes.

Error after loading first page: Uncaught TypeError: Cannot read property 'style' of undefined

Installed it, initialized it like the instructions say, and it works but if I laod in the loading-indicator.js file it doesn't work properly. The first link I click in my navigation does everything correctly: bar shows up (but doesn't go fullwidth to indicate 100% for some reason) and the next page loads very fast. I click any other link in the navigation and it throws the error: Uncaught TypeError: Cannot read property 'style' of undefined and the loading bar slowly fills up to 99% and stops and doesn't load the link.

In my footer: <script data-no-instant>InstantClick.init();</script>

EDIT: Was loading the main script in the header and not the footer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.