aik27 / inwidget

inWidget - free Instagram widget for your website. Allows you to show photos from an Instagram account, by hashtags and more.
http://inwidget.ru
Other
133 stars 53 forks source link

How Can I Remove Favicon And Need Mini Size #22

Open tosunkaya opened 6 years ago

tosunkaya commented 6 years ago

Hi how can i remove favicon.ico? in which file?

also is there any setting for smaller than "small" size like loading mini widget size?

also im loading jquery on my website too. is there any chance to use my website's jquery for iframe inwidget?

thanks in advance.

aik27 commented 6 years ago
  1. The widget doesn't contains favicon.ico file in distributive. If you mean default Instagram icon, you can change it in \inwidget\skins*.css
  2. "small" is minimum image quality option what you can set.
  3. Change path to jquery library in /inwidget/plugins/adaptive.php
tosunkaya commented 6 years ago

thanks for reply. if there is no favicon.ico on root, page is giving 404 for favicon.ico, i dont want to extra load 2) i see, but on mini widget's image sizes are smaller.

3) i already change to cdn BUT im adding this iframe to my page.

https://semiyetosunkaya.com.tr

my website is already loading same jquery file. and also same file loading in iframe (inwidget's)

is there any chance to remove jquery from iframe and work with website's iframe? (one file instead of two)

maybe fix is adding inwidget with javascript to the page. can i add inwidget with javascipt to my page for use my website's jquery and prevent 2 jquery loading?

thanks in advance.

aik27 commented 6 years ago

For now, I don't planing to move js logic from iframe document to front end, because this will make the widget installation a little more difficult and it does not have significant advantages for a webmaster.

Anyway, you can modify the source code as you wish.

For reference:

  1. inWidget use jquery for adaptive / responsive mode only. It required for dynamic change iframe and images dimensions. So if you don't need responsive display type, you can remove jquery from the source code without worry about other dependencies, inWidget will still work correct.

  2. By default, a browser will caching js resources of you site. So, one same js library, included in different places of clients html code (e.g. site header tag and iframe document) will not be download twice. Of course, if the library placed with same URL.